GNOME Bugzilla – Bug 751738
Unused-variable warnings in glib/tests/autoptr.c
Last modified: 2017-10-06 11:58:03 UTC
Building glib-2.44.1 on OS X 10.8 (xcode/clang): CC autoptr.o autoptr.c:17:25: warning: unused variable 'alwaysnull_again' [-Wunused-variable] g_autofree gchar *alwaysnull_again = NULL; ^ autoptr.c:9:21: warning: unused variable 'alwaysnull' [-Wunused-variable] g_autofree gchar *alwaysnull = NULL; ^ autoptr.c:227:18: warning: unused variable 'stackval' [-Wunused-variable] g_auto(GQueue) stackval = G_QUEUE_INIT; ^ 3 warnings generated. Sure enough, those variables are declared and then not actually used.
The following fix has been pushed: 860dc94 tests: Add some assertions on some otherwise-unused variables
Created attachment 361039 [details] [review] tests: Add some assertions on some otherwise-unused variables Signed-off-by: Philip Withnall <withnall@endlessm.com>