summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-06-15 16:09:49 (GMT)
committerThomas Haller <thaller@redhat.com>2017-06-15 16:52:53 (GMT)
commitcda0d805aa62eed5264099d42455114277fd12cf (patch)
tree713ea58baa699d1e2382f2b9123d996e8ed99cf9 /src
parenta0ed1e2c38bb0728f5a84ca0f9591d580a4e4183 (diff)
downloadlibnl-cda0d805aa62eed5264099d42455114277fd12cf.zip
libnl-cda0d805aa62eed5264099d42455114277fd12cf.tar.gz
libnl-cda0d805aa62eed5264099d42455114277fd12cf.tar.bz2
all: avoid compiler warnings -Wimplicit-fallthrough
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/utils.c b/src/lib/utils.c
index 6e288b6..1886159 100644
--- a/src/lib/utils.c
+++ b/src/lib/utils.c
@@ -179,6 +179,7 @@ int nl_cli_confirm(struct nl_object *obj, struct nl_dump_params *params,
switch ((answer = tolower(buf[0]))) {
case '\n':
answer = default_yes ? 'y' : 'n';
+ /* fall through */
case 'y':
case 'n':
return answer == 'y';