Fix a number of warnings identified by higher clang warning levels

* We enable a couple of high signal-to-noise warnings in all clang builds
This commit is contained in:
baldurk
2019-12-02 20:41:28 +00:00
parent 759926493b
commit 6d1d302491
69 changed files with 482 additions and 405 deletions
+6
View File
@@ -168,6 +168,12 @@ if(CMAKE_COMPILER_IS_GNUCXX)
"QMAKE_CXXFLAGS+=-Wno-unknown-warning -Wno-implicit-fallthrough -Wno-cast-function-type -Wno-stringop-truncation\n")
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
file(APPEND
${CMAKE_BINARY_DIR}/qrenderdoc/qrenderdoc_cmake.pri
"QMAKE_CXXFLAGS+=-Wno-comma\n")
endif()
if(ENABLE_WAYLAND)
message(WARNING "!!!! Using the Wayland Qt platform in qrenderdoc is NOT SUPPORTED !!!!")
file(APPEND
+1 -7
View File
@@ -112,13 +112,7 @@
}
// ignore some operators SWIG doesn't have to worry about
%ignore SDType::operator=;
%ignore StructuredObjectList::swap;
%ignore StructuredChunkList::swap;
%ignore StructuredObjectList::operator=;
%ignore StructuredObjectList::operator=;
%ignore StructuredChunkList::operator=;
%ignore StructuredBufferList::operator=;
%ignore *::operator=;
// these objects return a new copy which the python caller should own.
%newobject SDObject::Duplicate;