Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix warnings 'implicit-fallthrough' of gcc 7
[src/app-framework-main.git]
/
src
/
afm-system-daemon.c
diff --git
a/src/afm-system-daemon.c
b/src/afm-system-daemon.c
index
49749bc
..
e0557f4
100644
(file)
--- a/
src/afm-system-daemon.c
+++ b/
src/afm-system-daemon.c
@@
-103,6
+103,7
@@
static void on_install(struct sd_bus_message *smsg, struct json_object *req, voi
reload = j_boolean_at(req, "reload", 1);
break;
}
reload = j_boolean_at(req, "reload", 1);
break;
}
+ /*@fallthrough@*/
default:
jbus_reply_error_s(smsg, error_bad_request);
return;
default:
jbus_reply_error_s(smsg, error_bad_request);
return;
@@
-150,6
+151,7
@@
static void on_uninstall(struct sd_bus_message *smsg, struct json_object *req, v
root = j_string_at(req, "root", rootdir);
break;
}
root = j_string_at(req, "root", rootdir);
break;
}
+ /*@fallthrough@*/
default:
jbus_reply_error_s(smsg, error_bad_request);
return;
default:
jbus_reply_error_s(smsg, error_bad_request);
return;