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 return value of 'write', declared with > attribute warn_unused_result [-Wunused-result] > write(fd, buf, bufidx); > > I got a bunch of such ignoring-return-value warnings. Report a bug upstream and ask them to fix it. Bonus points for reading the C code, changing it to check the return value of write() as appropriate and send upstream a patch. -- bye, pabs http://wiki.debian.org/PaulWise -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/caktje6extwzsbprpk_l-8d9ux_5cchdxpk1+cfmfutzluqy...@mail.gmail.com