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

Harald Servat harald.servat@bsc.es
Fri Feb 12 16:50:00 GMT 2010


-----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-----



More information about the Gcc-help mailing list