Try to fix lexing issue with preproc w/r/t __has_warning

pull/3328/head
awr1 2020-07-14 21:58:36 -05:00
parent cc8cd88d7a
commit 638369e995
1 changed files with 6 additions and 2 deletions

View File

@ -525,9 +525,11 @@ void ExportSkin(Asset& mAsset, const aiMesh* aimesh, Ref<Mesh>& meshRef, Ref<Buf
delete[] vertexJointData;
}
#if defined(__has_warning) && __has_warning("-Wunused-but-set-variable")
#if defined(__has_warning)
#if __has_warning("-Wunused-but-set-variable")
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#endif
#endif
void glTFExporter::ExportMeshes()
{
@ -797,9 +799,11 @@ void glTFExporter::ExportMeshes()
}
}
#if defined(__has_warning) && __has_warning("-Wunused-but-set-variable")
#if defined(__has_warning)
#if __has_warning("-Wunused-but-set-variable")
#pragma GCC diagnostic pop
#endif
#endif
/*
* Export the root node of the node hierarchy.