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




commit 1f07f131fbfcb9bc20a77c2f294f474ae0db60a2
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..e341a9d67 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"); */
+    { } /* needs 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]