summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-02-06 14:42:47 +0100
committerThomas Haller <thaller@redhat.com>2017-02-06 16:45:20 +0100
commit7c6c8f0d8bf394031b27f1e1d5c5220309046e38 (patch)
tree62844b6bee59377086c4256363a256ac93233b9a /src/tests
parent6bd9f5361f5a7dbbf65f27d15f5faf71fb73bb43 (diff)
downloadNetworkManager-7c6c8f0d8bf394031b27f1e1d5c5220309046e38.tar.gz
all: cleanup switch fall-through comments for -Wimplicit-fallthrough warning
The -Wimplicit-fallthrough=3 warning is quite flexible of accepting a fall-through warning. Some comments were missing or not detected correctly. Thereby, also change all other comments to follow the exact same pattern.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test-general.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test-general.c b/src/tests/test-general.c
index 53c9c0d8f6..81d8e05c1e 100644
--- a/src/tests/test-general.c
+++ b/src/tests/test-general.c
@@ -1291,7 +1291,7 @@ test_nm_utils_strbuf_append (void)
nm_utils_strbuf_append_c (&t_buf, &t_len, str[0]);
break;
}
- /* fall-through */
+ /* fall through */
case 1:
nm_utils_strbuf_append_str (&t_buf, &t_len, str);
break;
@@ -1300,7 +1300,7 @@ test_nm_utils_strbuf_append (void)
nm_utils_strbuf_append (&t_buf, &t_len, "%c", str[0]);
break;
}
- /* fall-through */
+ /* fall through */
case 3:
nm_utils_strbuf_append (&t_buf, &t_len, "%s", str);
break;