Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 61074

Summary: GCC's -isystem option misses unused parameters
Product: Gentoo Linux Reporter: Tad Marko <tad>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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 
   ost::InetHostAddress&ia'
/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.