aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 17:21:54 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 17:21:54 +0300
commit8a7c6009fbddd7084fdfaebd9e3e3fd0baa39bc2 (patch)
tree440429318b7a0bc0f386a41d311de2443b82a6a7
parent8ba28e13ea4453a587d08e5533e60f4ff2b4781a (diff)
downloadnasm-8a7c6009fbddd7084fdfaebd9e3e3fd0baa39bc2.tar.gz
nasm-8a7c6009fbddd7084fdfaebd9e3e3fd0baa39bc2.tar.xz
nasm-8a7c6009fbddd7084fdfaebd9e3e3fd0baa39bc2.zip
Use fallthrough() to placate compiler
https://bugzilla.nasm.us/show_bug.cgi?id=3392465 Reported-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--asm/listing.c2
-rw-r--r--rdoff/rdflib.c2
2 files changed, 3 insertions, 1 deletions
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");