Compiler extensions are compiler specific implementations. Writing programs with compiler extensions enabled, do not align with c++ standards and may not get compiled with other compilers that have not those implementations.
It is always advisable to turn them off.
How to turn them off?
Provide the -pedantic-errors flag to the gcc or clang compiler command.