[glib/wip/otte/interface-types: 435/448] Suggest braces around empty body in ‘if’ statements




commit b8a864f5de51653b3925651cad6256d59863c43a
Author: Benjamin Otte <otte redhat com>
Date:   Thu Oct 4 13:02:18 2018 +0200

    Suggest braces around empty body in ‘if’ statements

 gobject/tests/threadtests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/tests/threadtests.c b/gobject/tests/threadtests.c
index 4cba720be..ba839dbf2 100644
--- a/gobject/tests/threadtests.c
+++ b/gobject/tests/threadtests.c
@@ -159,7 +159,7 @@ static void
 prop_tester_init (PropTester* t)
 {
   if (t->name == NULL)
-    ; /* neds unit test framework initialization: g_test_bug ("race initializing properties"); */
+    { } /* neds unit test framework initialization: g_test_bug ("race initializing properties"); */
 }
 static void
 prop_tester_set_property (GObject        *object,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]