summaryrefslogtreecommitdiff
path: root/rdoff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2018-05-08 12:45:00 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2018-05-08 12:45:00 -0700
commit6d36d8684cea66143ae7b415dbe9cff88b0bff81 (patch)
treeb17f8717b35c9d966d278a6d9cdf96f307cc9bda /rdoff
parentf0ceb1e122dc3523123dd8dfd6113f2e68451452 (diff)
downloadnasm-6d36d8684cea66143ae7b415dbe9cff88b0bff81.tar.gz
Fix implicit fallthrough that trips -Werror
-Werror now trips on implicit fallthroughs. There is also at least one that probably should not be, although it appears to be harmless. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'rdoff')
-rw-r--r--rdoff/rdflib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c
index ee7f19f6..b85b383f 100644
--- a/rdoff/rdflib.c
+++ b/rdoff/rdflib.c
@@ -233,6 +233,7 @@ int main(int argc, char **argv)
fprintf(stderr, "rdflib: required parameter missing\n");
exit(1);
}
+ break;
case 't':
fp = fopen(argv[2], "rb");
if (!fp) {
@@ -317,6 +318,8 @@ int main(int argc, char **argv)
case 'r': /* replace module */
argc--;
+ /* fall through */
+
case 'd': /* delete module */
if (argc < 4) {
fprintf(stderr, "rdflib: required parameter missing\n");