From: Simon McVittie Date: Wed, 2 Mar 2022 13:03:52 +0000 (+0000) Subject: test-utils-glib: Ensure correct precedence in g_assert_nonnull() X-Git-Tag: dbus-1.15.0~72^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7c325e57330fce94ab80b80e083b1f6d12c0cb1;p=thirdparty%2Fdbus.git test-utils-glib: Ensure correct precedence in g_assert_nonnull() It's best-practice to put macro arguments in parentheses so that they are always treated as a unit. Signed-off-by: Simon McVittie --- diff --git a/test/test-utils-glib.h b/test/test-utils-glib.h index c4a2c5436..ee642033e 100644 --- a/test/test-utils-glib.h +++ b/test/test-utils-glib.h @@ -127,7 +127,7 @@ backported_g_steal_pointer (gpointer pointer_to_pointer) #endif #ifndef g_assert_nonnull -#define g_assert_nonnull(a) g_assert (a != NULL) +#define g_assert_nonnull(a) g_assert ((a) != NULL) #endif gboolean test_check_tcp_works (void);