[glib/wip/otte/interface-types: 435/448] Suggest braces around empty body in ‘if’ statements
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/otte/interface-types: 435/448] Suggest braces around empty body in ‘if’ statements
- Date: Sat, 24 Oct 2020 03:35:48 +0000 (UTC)
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]