public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Question / Suggestion when gcc does not find a directory as -I parameter
@ 2010-02-12 16:50 Harald Servat
  2010-02-12 17:04 ` Marc Glisse
  0 siblings, 1 reply; 2+ messages in thread
From: Harald Servat @ 2010-02-12 16:50 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question / Suggestion when gcc does not find a directory as -I  parameter
  2010-02-12 16:50 Question / Suggestion when gcc does not find a directory as -I parameter Harald Servat
@ 2010-02-12 17:04 ` Marc Glisse
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Glisse @ 2010-02-12 17:04 UTC (permalink / raw)
  To: Harald Servat; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-12 16:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-12 16:50 Question / Suggestion when gcc does not find a directory as -I parameter Harald Servat
2010-02-12 17:04 ` Marc Glisse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).