On 20 December 2010 21:31, Martin Pool <m...@canonical.com> wrote: > On 20 December 2010 19:49, Erik de Castro Lopo <mle+s...@mega-nerd.com> wrote: >> dave b wrote: >> >>> Ha! no I didn't see any warnings at all :( > > Well, you'd have to turn them on to see them. > >> >> I highly recommend compiling with -Wall when using GCC. >> >> Personally, I also really like -Wextra.
AH hum: gcc ptrace.c -Wall ptrace.c: In function ‘main’: ptrace.c:20: warning: implicit declaration of function ‘getpgid’ erh ... even with #define _XOPEN_SOURCE 500 #define _XOPEN_SOURCE_EXTENDED 500 So sure you can be pedantic but really this wasn't my fault for not looking at compiler warnings - so don't make me the example thank you! (I compile with -Wall). Actually you didn't point out that I should have been using getpgrp() - because the gcc warning looks harmless for getpgid. (even with your fancy compiler flags :P ). -- Let me take you a button-hole lower. -- William Shakespeare, "Love's Labour's Lost" _______________________________________________ coders mailing list coders@slug.org.au http://lists.slug.org.au/listinfo/coders