From f67fa6dbefc2de64ed31b77fc49b6c3f67c53705 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Wed, 12 Feb 2020 20:53:14 +0100 Subject: unix_signal: Fix ISO C90 warning unix_signal.c:140:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] GSource *source; ^ --- src/unix_signal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/unix_signal.c b/src/unix_signal.c index 17c8725..e2d9581 100644 --- a/src/unix_signal.c +++ b/src/unix_signal.c @@ -146,9 +146,9 @@ guint unix_signal_add_full(gint priority, gint signum, GSourceFunc function, gpointer data, GDestroyNotify notify) { - g_return_val_if_fail(function != NULL, 0); - GSource *source = unix_signal_source_new(signum); guint id; + GSource *source = unix_signal_source_new(signum); + g_return_val_if_fail(function != NULL, 0); if (priority != G_PRIORITY_DEFAULT) g_source_set_priority (source, priority); -- cgit