From 298b3479445527861b2d97cd25e512ee90d6ab58 Mon Sep 17 00:00:00 2001 From: Colin Clark Date: Thu, 21 Feb 2019 15:04:01 +0000 Subject: [PATCH] Bug Fix: DEBUG_NAME() function for use with GTKInspector gcc shows a "too many arguments" error, but clang does not. --- src/debug.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.20.1