From b7c325e57330fce94ab80b80e083b1f6d12c0cb1 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 2 Mar 2022 13:03:52 +0000 Subject: [PATCH] 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 --- test/test-utils-glib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.3