From 8a7c6009fbddd7084fdfaebd9e3e3fd0baa39bc2 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 25 Feb 2018 17:21:54 +0300 Subject: [PATCH] Use fallthrough() to placate compiler https://bugzilla.nasm.us/show_bug.cgi?id=3392465 Reported-by: Ozkan Sezer Signed-off-by: Cyrill Gorcunov --- asm/listing.c | 2 +- rdoff/rdflib.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/asm/listing.c b/asm/listing.c index 9409aa90..7914fbf2 100644 --- a/asm/listing.c +++ b/asm/listing.c @@ -215,8 +215,8 @@ static void list_output(const struct out_data *data) list_out(offset, q); } else { p = zero_buffer; - /* fall through */ } + fallthrough(); case OUT_RAWDATA: { if (size == 0 && !listdata[0]) diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c index ee7f19f6..1de50ad9 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); } + fallthrough(); case 't': fp = fopen(argv[2], "rb"); if (!fp) { @@ -317,6 +318,7 @@ int main(int argc, char **argv) case 'r': /* replace module */ argc--; + fallthrough(); case 'd': /* delete module */ if (argc < 4) { fprintf(stderr, "rdflib: required parameter missing\n");