From: Colin Clark Date: Thu, 21 Feb 2019 15:04:01 +0000 (+0000) Subject: Bug Fix: DEBUG_NAME() function for use with GTKInspector X-Git-Tag: v1.5~22 X-Git-Url: http://geeqie.org/cgi-bin/gitweb.cgi?p=geeqie.git;a=commitdiff_plain;h=298b3479445527861b2d97cd25e512ee90d6ab58 Bug Fix: DEBUG_NAME() function for use with GTKInspector gcc shows a "too many arguments" error, but clang does not. --- diff --git a/src/debug.h b/src/debug.h index c221ce0e..06b7b8d4 100644 --- a/src/debug.h +++ b/src/debug.h @@ -70,7 +70,7 @@ void init_exec_time(void); */ #define DEBUG_NAME(widget) do \ { \ - gtk_widget_set_name(GTK_WIDGET(widget), g_strdup_printf("%s:%d", __FILE__, __LINE__, NULL)); \ + gtk_widget_set_name(GTK_WIDGET(widget), g_strdup_printf("%s:%d", __FILE__, __LINE__)); \ } while(0) #else /* DEBUG */