瀏覽代碼

Preproc conditional should be &&, not ||

awr1 5 年之前
父節點
當前提交
cc8cd88d7a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      code/AssetLib/glTF/glTFExporter.cpp

+ 2 - 2
code/AssetLib/glTF/glTFExporter.cpp

@@ -525,7 +525,7 @@ void ExportSkin(Asset& mAsset, const aiMesh* aimesh, Ref<Mesh>& meshRef, Ref<Buf
     delete[] vertexJointData;
     delete[] vertexJointData;
 }
 }
 
 
-#if defined(__has_warning) || __has_warning("-Wunused-but-set-variable")
+#if defined(__has_warning) && __has_warning("-Wunused-but-set-variable")
 #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
 #pragma GCC diagnostic ignored "-Wunused-but-set-variable"
 #endif
 #endif
 
 
@@ -797,7 +797,7 @@ void glTFExporter::ExportMeshes()
     }
     }
 }
 }
 
 
-#if defined(__has_warning) || __has_warning("-Wunused-but-set-variable")
+#if defined(__has_warning) && __has_warning("-Wunused-but-set-variable")
 #pragma GCC diagnostic pop
 #pragma GCC diagnostic pop
 #endif
 #endif