[glib] gvariant: Add suggested braces
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gvariant: Add suggested braces
- Date: Tue, 22 Nov 2016 05:32:38 +0000 (UTC)
commit 611b079e3d351975c833cb98b7368ca101d252a9
Author: Benjamin Otte <otte redhat com>
Date: Thu Aug 25 17:41:31 2016 +0200
gvariant: Add suggested braces
... around empty body in an 'else' statement
glib/gvariant-parser.c | 5 ++++-
glib/gvariant.c | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c
index 9f4bcc5..b99ac4f 100644
--- a/glib/gvariant-parser.c
+++ b/glib/gvariant-parser.c
@@ -209,7 +209,10 @@ token_stream_prepare (TokenStream *stream)
break;
}
- else /* ↓↓↓ */;
+ else
+ {
+ /* ↓↓↓ */
+ }
case 'a': /* 'b' */ case 'c': case 'd': case 'e': case 'f':
case 'g': case 'h': case 'i': case 'j': case 'k': case 'l':
diff --git a/glib/gvariant.c b/glib/gvariant.c
index 2a5246c..5b843fc 100644
--- a/glib/gvariant.c
+++ b/glib/gvariant.c
@@ -2278,7 +2278,9 @@ g_variant_print_string (GVariant *value,
}
else
- /* fall through and handle normally... */;
+ {
+ /* fall through and handle normally... */
+ }
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]