Re: Turn off C compiler warnings in automake

2015-06-30 Thread Alex Vong
於 二,2015-06-30 於 09:37 +0200,Thomas Jahns 提到: > On 06/29/15 17:31, Alex Vong wrote: > > Thanks for telling me there is no portable flag for doing so. > > I am now using AC_SUBST() to set the value of STREAM and append ` > > $(STREAM)>/dev/null' to every make command. If the user configure with > >

Re: Turn off C compiler warnings in automake

2015-06-30 Thread Thomas Jahns
On 06/29/15 17:31, Alex Vong wrote: Thanks for telling me there is no portable flag for doing so. I am now using AC_SUBST() to set the value of STREAM and append ` $(STREAM)>/dev/null' to every make command. If the user configure with --enable-verbose-compiler, then STREAM will be set to 0, other

Re: Turn off C compiler warnings in automake

2015-06-29 Thread Alex Vong
於 一,2015-06-29 於 10:00 +0200,Thomas Jahns 提到: > 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.

Re: Turn off C compiler warnings in automake

2015-06-29 Thread Thomas Jahns
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 compil

Re: Re: Turn off C compiler warnings in automake

2015-06-28 Thread Alex Vong
Hi Thomas, Sorry I forget to subscript to the mailing list so I cannot reply, but now I can. May be I should clarify why I want to silent those warnings. Actually, I am working on packaging a GPLed software for a distro. (I am new in both packaging and autotools.) The software does not use a Make

Re: Turn off C compiler warnings in automake

2015-06-22 Thread Thomas Jahns
Hello, On 06/22/15 15:44, Alex Vong wrote: Is there any easy way to turn off c compiler warnings (those printed to stderr) portably? From my point of view, the easy way is to write portable code which does not generate warnings. This is also the preferred and recommended way. But automake i