mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 03:33:48 +00:00
Couple warning fixes (#139)
* Use -Wno-tautological-constant-out-of-range-compare for Clang (these warnings come from the sanity checks in generated IfcXXX files). * Remove unused variable and typedefs + suppress uint->bool conversion warnings (MSVC) + add note about Clang in README * MSVC uint->bool convesion warning fixes when IFC4 is defined
This commit is contained in:
committed by
Thomas Krijnen
parent
8a92e1a766
commit
a171b2b9b0
@@ -369,6 +369,9 @@ IF(MSVC)
|
||||
ENDFOREACH()
|
||||
ElSE()
|
||||
add_definitions(-Wall -Wextra)
|
||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
add_definitions(-Wno-tautological-constant-out-of-range-compare)
|
||||
endif()
|
||||
# -fPIC is not relevant on Windows and creates pointless warnings
|
||||
if (UNIX)
|
||||
add_definitions(-fPIC)
|
||||
|
||||
Reference in New Issue
Block a user