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:
parent
94d35ad02b
commit
a8b73758e7
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue