Re: Question / Suggestion when gcc does not find a directory as -I parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux