Question / Suggestion when gcc does not find a directory as -I parameter
Marc Glisse
marc.glisse+gcc@normalesup.org
Fri Feb 12 17:04:00 GMT 2010
On Fri, 12 Feb 2010, Harald Servat wrote:
> Hello,
>
> I'm using
>
> gcc version 4.3.1 20080507 (prerelease) [gcc-4_3-branch revision
> 135036] (SUSE Linux)
>
> and I'm curious about the fact that gcc does not complain when giving
> invalid directories as -I parameters, like:
>
> # gcc -Wall -Wextra -I /nonexistent test.c
> test.c:1: warning: unused parameter ‘argc’
> test.c:1: warning: unused parameter ‘argv’
>
> Shouldn't gcc warn (or fail) about the inexistent directory?
-Wmissing-include-dirs (C, C++, Objective-C and Objective-C++ only)
Warn if a user-supplied include directory does not exist.
--
Marc Glisse
More information about the Gcc-help
mailing list