[Bug c/40989] New: -Werror=implicit does not enable -Wimplicit
flameeyes at gentoo dot org
gcc-bugzilla@gcc.gnu.org
Thu Aug 6 15:06:00 GMT 2009
I'm not sure if this is the cause of the final bug I'm trying to reproduce out
of a project of mine (implicit function declarations are not reported having
any value to the side with -fdiagnostics-show-option), but anywayâ¦
While the man page for gcc implies that -Werror=foo enables -Wfoo, this doesn't
seem to be the case:
flame@yamato mytmpfs % cat test.c
int main() {
return pippo();
}
flame@yamato mytmpfs % gcc -c -Werror=implicit -fdiagnostics-show-option test.c
-o test.o
flame@yamato mytmpfs % gcc -c -Wimplicit -fdiagnostics-show-option test.c -o
test.o
test.c: In function âÂÂmainâÂÂ:
test.c:2: warning: implicit declaration of function âÂÂpippoâÂÂ
[-Wimplicit-function-declaration]
Doesn't look right to me.
--
Summary: -Werror=implicit does not enable -Wimplicit
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: flameeyes at gentoo dot org
GCC host triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40989
More information about the Gcc-bugs
mailing list