mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-15 18:57:08 +00:00
Fix -Wtype-limits warnings and remove disabling of -Wtype-limits
This commit is contained in:
parent
5038b9aaec
commit
3993102e88
6 changed files with 20 additions and 18 deletions
|
@ -643,11 +643,6 @@ else()
|
|||
if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable")
|
||||
endif(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)
|
||||
|
||||
CHECK_CXX_COMPILER_FLAG("-Wno-type-limits" HAS_TYPE_LIMITS_WARNING)
|
||||
if(HAS_TYPE_LIMITS_WARNING)
|
||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-type-limits")
|
||||
endif(HAS_TYPE_LIMITS_WARNING)
|
||||
endif()
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue