@ -198,7 +198,7 @@ if( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
)
)
string ( APPEND CMAKE_CXX_FLAGS " ${CLANG_WARNINGS}" )
string ( APPEND CMAKE_CXX_FLAGS " ${CLANG_WARNINGS}" )
endforeach ( )
endforeach ( )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTREACHED='//' " )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTREACHED='//' -DFALLTHRU='[[clang::fallthrough]]' ")
# T h i r d - p a r t y c o d e w h e r e w e d o n ' t c a r e s o m u c h a b o u t c o m p i l e r w a r n i n g s
# T h i r d - p a r t y c o d e w h e r e w e d o n ' t c a r e s o m u c h a b o u t c o m p i l e r w a r n i n g s
# ( b e c a u s e i t ' s u n c o m f o r t a b l e t o p a t c h ) g e t d i f f e r e n t f l a g s ; u s e
# ( b e c a u s e i t ' s u n c o m f o r t a b l e t o p a t c h ) g e t d i f f e r e n t f l a g s ; u s e
@ -225,7 +225,7 @@ else()
set ( SUPPRESS_3RDPARTY_WARNINGS "" )
set ( SUPPRESS_3RDPARTY_WARNINGS "" )
set ( SUPPRESS_BOOST_WARNINGS "" )
set ( SUPPRESS_BOOST_WARNINGS "" )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTREACHED='__builtin_unreachable();' " )
set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTREACHED='__builtin_unreachable();' -DFALLTHRU='/* */' " )
endif ( )
endif ( )
# U s e mark_thirdparty_code ( ) t o r e d u c e w a r n i n g s f r o m t h e c o m p i l e r
# U s e mark_thirdparty_code ( ) t o r e d u c e w a r n i n g s f r o m t h e c o m p i l e r