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

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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?

Regards.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iEYEARECAAYFAkt1g3QACgkQwMPeuqUCg9zNuACeKf1j1Wq4rptbL877qklnSvpk
agwAmwWqmiQU7X5DrX6dRaW9Xru10jf0
=7DP3
-----END PGP SIGNATURE-----

[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