Hide warnings with GCC

Based on clang #pragmas, added equivalent pragmas to GCC.