Hi Alex,

On 06/28/15 16:21, Alex Vong wrote:
Besides, the code base is quite old and as we know compilers always
add new warnings. I have asked upstream about fixing the warnings, but
it seems there is no easy way to fix all of them. So I want to know is
there a portable way to silent all compiler warnings? Since there are
lots of warnings even without '-Wall -Wextra'. I want to know how do
you think about it.

since you are using gcc, there are -fsyntax-only and -w which should provide less verbose builds. But there are only very few portable compiler options (like -I, -D) and to my knowledge none address warnings.

You could of course redirect all compiler stderr output to /dev/null and thus get rid of it, i.e. add 2>/dev/null to your make calls. But this will make debugging build failures harder later on.

Regards, Thomas


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to