[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off C compiler warnings in automake

From: Thomas Jahns
Subject: Re: Turn off C compiler warnings in automake
Date: Mon, 29 Jun 2015 10:00:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0

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

[Prev in Thread] Current Thread [Next in Thread]