On Wed, 2011-04-06 at 20:52 +0200, Fridrich Strba wrote:
Hello,
On Wed, 2011-04-06 at 16:29 +0200, Roger Oberholtzer wrote:
-Wunused-function Warn whenever a static function is declared but not defined or a non-inline static function is unused.
This is new with gcc 4.6.0. There are two possibilities:
Possibly. But I have seen this for quite a while. I think it predates 4.6
1) Compiler has a bug and is warning wrongly (not impossible for a .0 release). There, it would be good to address the issue directly with gcc folks. For mingw port, I would contact nick "ktietz" at #mingw-w64@irc.oftc.net.
This is my guess. I will take contact.
2) The compiler actually disregards the inline keyword and creates an object code for that method. It could be possible, but I would then expect a hell during linking phase. Here again the gcc people could help.
No such problem - or so it seems. All works great. I will have to see about generating symbol maps to see if these functions are being generated in each object file. I have a goal of some day compiling our code with pedantic checks, and not having a single complaint on any platform. This is one thing that is providing hundreds of false positives. Not really a problem. More of an annoyance. -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 SHAW'S PRINCIPAL Build a system that even a fool can use, and only a fool will want to use it. -- To unsubscribe, e-mail: opensuse-mingw+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mingw+help@opensuse.org