[Nasm-bugs] [Bug 3392465] -Wimplicit-fallthrough warnings

no-reply at bugzilla-nasm.gorcunov.org no-reply at bugzilla-nasm.gorcunov.org
Sun Feb 25 08:57:05 PST 2018


Ozkan Sezer <sezeroz at gmail.com> changed:

           What    |Removed                     |Added
                 CC|                            |sezeroz at gmail.com

--- Comment #3 from Ozkan Sezer <sezeroz at gmail.com> ---
With gcc4.3, which does not support __attribute__((fallthrough)),
my config.log says:
configure:9113: checking if gcc -std=gnu99 supports fallthrough attribute
configure:9133: gcc -std=gnu99 -c -g -O3 -fwrapv -U__STRICT_ANSI__ -fno-common
-Werror=attributes -W -Wall -pedantic -Wno-long-long -Werror=implicit
-Werror=missing-braces -Werror=return-type -Werror=trigraphs
-Werror=pointer-arith -Werror=strict-prototypes -Werror=missing-prototypes
-Werror=missing-declarations -Werror=comment -Werror=vla -fgnu89-inline 
conftest.c >&5
conftest.c: In function 'main':
conftest.c:148: warning: empty declaration
configure:9133: $? = 0
configure:9135: result: yes

And from the build I have:
asm/listing.c: In function ‘list_output’:
asm/listing.c:219: warning: empty declaration
rdoff/rdflib.c: In function ‘main’:
rdoff/rdflib.c:236: warning: empty declaration
rdoff/rdflib.c:321: warning: empty declaration

I guess the attribute should be checked with -Werror in CFLAGS.

You are receiving this mail because:
You are on the CC list for the bug.
You are watching all bug changes.

More information about the Nasm-bugs mailing list