I have a project which uses tinyxml2
library. I have a very long list of compiler options where the -Werror=zero-as-null-pointer-constant
is listed among others. So, everywhere I include the tinyxml2.h
I have the errors: 0 used as null pointer
, however my code does not have such problems. Is there a way to disable some compiler options for the includes because I can't control them?
P.S. If it is impossible to do via gcc/clang
options, perhaps it is possible to do via cmake? Or I would like to know both ways if they are exist.