0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-09-22 10:43:39 -04:00

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>
This commit is contained in:
H. Peter Anvin
2018-05-08 12:45:00 -07:00
parent f0ceb1e122
commit 6d36d8684c
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
/* ----------------------------------------------------------------------- * /* ----------------------------------------------------------------------- *
* *
* Copyright 1996-2016 The NASM Authors - All Rights Reserved * Copyright 1996-2018 The NASM Authors - All Rights Reserved
* See the file AUTHORS included with the NASM distribution for * See the file AUTHORS included with the NASM distribution for
* the specific copyright holders. * the specific copyright holders.
* *
@@ -213,10 +213,11 @@ static void list_output(const struct out_data *data)
if (size > 16) { if (size > 16) {
snprintf(q, sizeof(q), "<zero %08"PRIX64">", size); snprintf(q, sizeof(q), "<zero %08"PRIX64">", size);
list_out(offset, q); list_out(offset, q);
break;
} else { } else {
p = zero_buffer; p = zero_buffer;
/* fall through */
} }
/* fall through */
case OUT_RAWDATA: case OUT_RAWDATA:
{ {
if (size == 0 && !listdata[0]) if (size == 0 && !listdata[0])

View File

@@ -233,6 +233,7 @@ int main(int argc, char **argv)
fprintf(stderr, "rdflib: required parameter missing\n"); fprintf(stderr, "rdflib: required parameter missing\n");
exit(1); exit(1);
} }
break;
case 't': case 't':
fp = fopen(argv[2], "rb"); fp = fopen(argv[2], "rb");
if (!fp) { if (!fp) {
@@ -317,6 +318,8 @@ int main(int argc, char **argv)
case 'r': /* replace module */ case 'r': /* replace module */
argc--; argc--;
/* fall through */
case 'd': /* delete module */ case 'd': /* delete module */
if (argc < 4) { if (argc < 4) {
fprintf(stderr, "rdflib: required parameter missing\n"); fprintf(stderr, "rdflib: required parameter missing\n");