Rogério Brito dixit: >It can be a good thing to use "-ansi -pedantic" while compiling >alpha/very rough development versions, so that the compiler keep you on >your place if: > >* you're programming by trial-and-error :) >* you're aiming at, say, C89. * you're not targetting POSIX/SUSv3 OSes but really just ANSI C
I use a different set of options these days: -std=c99 and a couple of -W* flags work well, except glibc require[sd] -std=gnu99 instead. bye, //mirabilos -- In traditional syntax ' is ignored, but in c99 everything between two ' is handled as character constant. Therefore you cannot use ' in a preproces- sing file in c99 mode. -- Ragge No faith left in ISO C99, undefined behaviour, and C compiler authors. -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

