<<On the contrary, compiling with `-pedantic' is usually a good idea, despite what the gcc documentation says. >> That's far too strong. It is a good idea IF you want help in trying to be sure that your code will be portable to other compilers than GCC, but if this is not of interest, then there is no reason to use the switch.