Commit 4af52107 authored by Anton Gladky's avatar Anton Gladky

Update ENABLE_USEFUL_ERRORS for GCC-10 (we cannot drop it now, unfortunately)

parent 8a97a726
Pipeline #137617156 canceled with stages
in 116 minutes and 15 seconds
......@@ -279,8 +279,12 @@ if(ENABLE_USEFUL_ERRORS)
# -Wfloat-conversion warning: you have to select the int(…) conversion policy: std::floor(…), std::ceil(…), std::round(…), e.g. with int(std::ceil(11.9999999999999993))
# g++ ver < 10 ; all workarounds are for g++ < ver.10; When version 10 appears I hope that there will be fewer warnigs to disable. This 'IF' is to trigger the re-evealuation when g++ v.10 appears.
IF (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10.0 )
IF (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0 )
SET(WORKAROUND_LIBRARY_WARNINGS " -Wno-error=maybe-uninitialized -Wno-comment")
# g++ ver == 10
IF (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 10.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 10.0)
SET(WORKAROUND_LIBRARY_WARNINGS "${WORKAROUND_LIBRARY_WARNINGS} -Wno-cast-function-type")
ENDif()
# g++ ver >= 8
IF (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 8.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 8.0)
SET(WORKAROUND_LIBRARY_WARNINGS "${WORKAROUND_LIBRARY_WARNINGS} -Wno-cast-function-type")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment