aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 22:25:07 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-02-25 22:25:07 +0300
commit72fd205bcf2bbe93792497b4cc91b88969743457 (patch)
tree0df48a6dc6601f58e0561a2a624f5f71ad68653b
parent5829bbd9ed641c6a91f7d5d9dcec459871c7cd0f (diff)
downloadnasm-72fd205bcf2bbe93792497b4cc91b88969743457.tar.gz
nasm-72fd205bcf2bbe93792497b4cc91b88969743457.tar.xz
nasm-72fd205bcf2bbe93792497b4cc91b88969743457.zip
Revert "Use fallthrough() to placate compiler"
This reverts commit 8a7c6009fbddd7084fdfaebd9e3e3fd0baa39bc2.
-rw-r--r--asm/listing.c2
-rw-r--r--rdoff/rdflib.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/asm/listing.c b/asm/listing.c
index 7914fbf2..9409aa90 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 1de50ad9..ee7f19f6 100644
--- a/rdoff/rdflib.c
+++ b/rdoff/rdflib.c
@@ -233,7 +233,6 @@ 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) {
@@ -318,7 +317,6 @@ 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");