[glib/wip/otte/interface-types: 31/37] Suggest braces around empty body in ‘if’ statements
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/otte/interface-types: 31/37] Suggest braces around empty body in ‘if’ statements
- Date: Mon, 2 Nov 2020 17:36:26 +0000 (UTC)
commit 1f6c73747e9390ac08f960733a16047d9f5439fc
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]