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:

fl...@yamato mytmpfs % cat test.c
int main() {
  return pippo();
}
fl...@yamato mytmpfs % gcc -c -Werror=implicit -fdiagnostics-show-option test.c
-o test.o
fl...@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

Reply via email to