User forums > General (but related to Code::Blocks)

Suppress compiler warnings fired off from 3rd party libraries.

(1/2) > >>

RoestVrijStaal:
Hello,

I compile with -Wswitch-default as extra safeguard to keep my code bug free at switch-blocks.

Unfortunately in SDL, the default-statement is often forgotten in switches which smuggle my build logs. I couldn't find a way in the Compiler-settings-dialogue to filter those warnings out, so I only get warnings about my own code.

Is there a way to suppress compiler warnings which are caused in include directories of 3rd party libraries?

Best Regards,

RoestVrijStaal

stahta01:
Likely yes, but this would likely be a compiler fix/settings or library fix/settings instead of a Code::Blocks fix/setting change.

And the compiler settings are very rarely a valid topic on this site; once you figure out the setting for your compiler and you need help on where to enter them in CB that is a perfect question for this site.

You will likely need to do changes to your source code  for a fix; which is also not a valid topic for this site.

I suggest reading the rules on valid topic and the CB FAQs.
http://forums.codeblocks.org/index.php/topic,9996.0.html
http://wiki.codeblocks.org/index.php?title=FAQ

Tim S.

 

Alpha:
If you are using GCC (or similar), -isystem might be useful.

Though yes, this is not exactly C::B related...

oBFusCATed:
I don't think this is possible, unfortunately.
SDL is not a system library.

RoestVrijStaal:
Whoa, I didn't expect the thumpcard "Compiler-related issue, Not our problem, read the rules" is played so early in the game. Beat me how this isn't related to C::B anyway, because the kind of compiler used in this case doesn't make sense.

Ok, allow me to reform the question to this:
Is it possible to add a whitelist/blacklist filter in the Build Messages tab?

Informational side note:
The build message tab has a File column already. But a way of sorting it's entries doesn't seem to be implemented.

Navigation

[0] Message Index

[#] Next page

Go to full version