http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58988

            Bug ID: 58988
           Summary: -Werror=missing-include-dirs does not work
           Product: gcc
           Version: 4.7.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bugzi...@poradnik-webmastera.com

I tried to pass -Werror=missing-include-dirs option to gcc in order to find all
non-existing include dirs and found that this option in broken. In gcc 4.5.2
this option is ignored - gcc does not print any message when non-existing
include dir is specified. gcc 4.7.3 prints warning only.

gcc (both tested versions) changes this warnings into errors when both
-Wmissing-include-dirs -Werror options are used, but this is not an option for
be because of other warnings which are in my code.

I tested this using following command:
g++ -c test.cc -o test.o -I/a -Werror=missing-include-dirs

Reply via email to