Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61074 - GCC's -isystem option misses unused parameters
Summary: GCC's -isystem option misses unused parameters
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Please assign to toolchain
Depends on:
Reported: 2004-08-20 13:56 UTC by Tad Marko
Modified: 2005-11-29 09:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Tad Marko 2004-08-20 13:56:29 UTC
After Adding "-pedantic -Wall -W" to my project, gcc began complaining profusely about various problems in the commoncpp headers.  Reading the gcc man page, I discovered that "you should not use this option [-I] to add directories that contain vendor-supplied system header files (use -isystem for that)."

"Excellent, my salvation has arrived!" thought I, only to be disappointed with warnings of:

/usr/include/cc++2/cc++/socket.h: In member function `virtual bool 
   ost::TCPSocket::onAccept(const ost::InetHostAddress&, short unsigned int)':
/usr/include/cc++2/cc++/socket.h:1422: warning: unused parameter `const 
/usr/include/cc++2/cc++/socket.h:1422: warning: unused parameter `tpport_t port

from gcc. Considering the number of much more severe warnings that -isystem eliminated, it seems that continuing to complain about mere unused parameters is an error.
Comment 1 Mark Loeser (RETIRED) gentoo-dev 2005-11-29 09:02:53 UTC
What version of GCC?  Try the newest stable version on your arch and reopen if
its still a problem.