This note says:
-ansi: tells the compiler to implement the ANSI language option. This turns off certain "features" of GCC which are incompatible with the ANSI standard.
-pedantic: used in conjunction with-ansi, this tells the compiler to be adhere strictly to the ANSI standard, rejecting any code which is not compliant.
First things first:
-pedantic and -ansi options of the GCC/G++ compiler (I couldn't understand the above description)?