Re: Is it OK to have compile warnings

2013-10-23 Thread Patrick Baggett
On Tue, Oct 22, 2013 at 8:41 PM, Tong Sun mlist4sunt...@yahoo.com wrote: Hi, Is it OK to have compile warnings when building a package? If not, how can I fix the following: dial.c: In function 'main': dial.c:273:8: warning: ignoring return value of 'write', declared with attribute

Re: Is it OK to have compile warnings

2013-10-23 Thread Gert Wollny
To directly answer your question, since I think everyone so far has told you that you should fix it, this answer from S/O [1] [...] [1] http://stackoverflow.com/questions/3614691/casting-to-void-doesnt-remove-warn-unused-result-error/3615000#3615000 One should note that the question on S/O

Re: Is it OK to have compile warnings

2013-10-23 Thread Patrick Baggett
Oh yeah, definitely fix it if at all possible ;) On Wed, Oct 23, 2013 at 10:59 AM, Gert Wollny gw.foss...@gmail.com wrote: To directly answer your question, since I think everyone so far has told you that you should fix it, this answer from S/O [1] [...] [1]

Re: Is it OK to have compile warnings

2013-10-23 Thread Russ Allbery
Gert Wollny gw.foss...@gmail.com writes: To directly answer your question, since I think everyone so far has told you that you should fix it, this answer from S/O [1] [...] [1] http://stackoverflow.com/questions/3614691/casting-to-void-doesnt-remove-warn-unused-result-error/3615000#3615000

Is it OK to have compile warnings

2013-10-22 Thread Tong Sun
Hi,  Is it OK to have compile warnings when building a package? If not, how can I fix the following: dial.c: In function 'main': dial.c:273:8: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]    write(fd, buf, bufidx); I got a bunch

Re: Is it OK to have compile warnings

2013-10-22 Thread Paul Wise
On Wed, Oct 23, 2013 at 9:41 AM, Tong Sun wrote: Is it OK to have compile warnings when building a package? If not, It is fairly normal to have compile warnings since GCC gets stricter over time. how can I fix the following: dial.c: In function 'main': dial.c:273:8: warning: ignoring

Re: Is it OK to have compile warnings

2013-10-22 Thread Octavio Alvarez
On 22/10/13 18:41, Tong Sun wrote: Hi, Is it OK to have compile warnings when building a package? Although sometimes the compiler is just noisy, I don't like ignoring compiler warnings. They may be a hint of an omission, a bug, or in the worst case, a security issue. I prefer to shut