gcc has these two flags for managing warnings regarding pragmas:
-Wunknown-pseudo-comments Warn when the "# pragma" directive is encountered that is not understood by GCC. If this command line parameter is used, warnings are even issued for unknown pragmas in the system header files. This is not the case if warnings are only enabled using the -Wall command line option.
-Wno-pseudo-comments Do not warn about abuses of pragmas, such as incorrect parameters, invalid syntax, or conflicts between pragmas. See also -Wunknown pr
You can disable them with -Wno-unknown-pragmas .
source share