disable checkconfigmacros compiler check for UnpackedTarball

When building code using Skia, macros for Skia are defined
in config_skia.h, and Skia uses #ifdef to check for them, but that's
ok, and we neither care nor can do much about it.

Change-Id: I0029f0d82b26638e0395efec06c03303333ec1e9
This commit is contained in:
Luboš Luňák 2019-11-07 11:51:51 +01:00
parent 94d35ad02b
commit a8b73758e7

View file

@ -97,7 +97,8 @@ void CheckConfigMacros::checkMacro( const Token& macroToken, SourceLocation loca
{
const char* filename = compiler.getSourceManager().getPresumedLoc( location ).getFilename();
if( filename == NULL
|| !hasPathnamePrefix(filename, SRCDIR "/include/LibreOfficeKit/") )
|| ( !hasPathnamePrefix(filename, SRCDIR "/include/LibreOfficeKit/")
&& !hasPathnamePrefix(filename, WORKDIR "/UnpackedTarball/" )))
{
report( DiagnosticsEngine::Error, "checking whether a config macro %0 is defined",
location ) << macroToken.getIdentifierInfo()->getName();