@ -79,8 +79,8 @@ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} \
set ( CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} -Wl,-O1" )
if ( CMAKE_COMPILER_IS_GNUC C )
if ( NOT ( CMAKE_C _COMPILER_VERSION LESS 6.0 ) )
if ( CMAKE_COMPILER_IS_GNUC XX )
if ( NOT ( CMAKE_C XX _COMPILER_VERSION LESS 6.0 ) )
add_compile_options (
- W s h i f t - o v e r f l o w = 2
- W n u l l - d e r e f e r e n c e
@ -90,7 +90,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
)
endif ( )
if ( NOT ( CMAKE_C _COMPILER_VERSION LESS 7.0 ) )
if ( NOT ( CMAKE_C XX _COMPILER_VERSION LESS 7.0 ) )
add_compile_options (
- W d a n g l i n g - e l s e
- W s h a d o w = g l o b a l
@ -98,7 +98,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
)
endif ( )
if ( NOT ( CMAKE_C _COMPILER_VERSION LESS 8.0 ) )
if ( NOT ( CMAKE_C XX _COMPILER_VERSION LESS 8.0 ) )
add_compile_options (
- W m u l t i s t a t e m e n t - m a c r o s
- W a r r a y - b o u n d s = 2
@ -116,33 +116,139 @@ if (CMAKE_COMPILER_IS_GNUCC)
- W c a s t - q u a l
- W c a s t - a l i g n
- W p a r e n t h e s e s
- W j u m p - m i s s e s - i n i t
- W f l o a t - c o n v e r s i o n
- W m i s s i n g - p r o t o t y p e s
- W r e d u n d a n t - d e c l s
- W d i s a b l e d - o p t i m i z a t i o n
- W o v e r l e n g t h - s t r i n g s
- W s w i t c h - e n u m
- f s t a c k - c l a s h - p r o t e c t i o n
- s t a t i c
)
endif ( )
else ( )
if ( NOT ( CMAKE_CXX_COMPILER_VERSION LESS 9.0 ) )
add_compile_options (
- W c a t c h - v a l u e = 2
- W d u p l i c a t e d - b r a n c h e s
- W e x t r a - s e m i
- W i f - n o t - a l i g n e d
- W p l a c e m e n t - n e w = 2
- W s u g g e s t - o v e r r i d e
- W u n u s e d - b u t - s e t - p a r a m e t e r
- W s w i t c h - e n u m
- W u s e l e s s - c a s t
)
endif ( )
elseif ( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
add_compile_options (
- W n o - m i s s i n g - b r a c e s
)
if ( NOT ( CMAKE_C_COMPILER_VERSION LESS 6.0 ) )
if ( NOT ( CMAKE_C XX _COMPILER_VERSION LESS 6.0 ) )
add_compile_options (
- W s h i f t - o v e r f l o w
- W n u l l - d e r e f e r e n c e
- W v l a
- W d a n g l i n g - e l s e
- W s h a d o w
- W p r a g m a s
- W t a u t o l o g i c a l - c o m p a r e
- W z e r o - a s - n u l l - p o i n t e r - c o n s t a n t
)
endif ( )
if ( NOT ( CMAKE_CXX_COMPILER_VERSION LESS 10.0 ) )
add_compile_options (
- W a r r a y - b o u n d s - p o i n t e r - a r i t h m e t i c
- W a s s i g n - e n u m
- W a t o m i c - i m p l i c i t - s e q - c s t
- W a t o m i c - p r o p e r t i e s
- W a u t o - i m p o r t
- W b a d - f u n c t i o n - c a s t
- W b i n d - t o - t e m p o r a r y - c o p y
- W b i t f i e l d - e n u m - c o n v e r s i o n
- W b i t w i s e - o p - p a r e n t h e s e s
- W c o m m a
- W c o n d i t i o n a l - u n i n i t i a l i z e d
- W c o n s u m e d
- W c s t r i n g - f o r m a t - d i r e c t i v e
- W c t a d - m a y b e - u n s u p p o r t e d
- W c u s t o m - a t o m i c - p r o p e r t i e s
- W d e l e t e - n o n - a b s t r a c t - n o n - v i r t u a l - d t o r
- W d e p r e c a t e d - c o p y
- W d e p r e c a t e d - c o p y - d t o r
- W d e p r e c a t e d - d y n a m i c - e x c e p t i o n - s p e c
- W d e p r e c a t e d - i m p l e m e n t a t i o n s
- W d o u b l e - p r o m o t i o n
- W d u p l i c a t e - e n u m
- W d u p l i c a t e - m e t h o d - a r g
- W d u p l i c a t e - m e t h o d - m a t c h
- W e m b e d d e d - d i r e c t i v e
- W e m p t y - i n i t - s t m t
- W e x i t - t i m e - d e s t r u c t o r s
- W e x p l i c i t - o w n e r s h i p - t y p e
- W e x t r a - s e m i
- W f l o a t - c o n v e r s i o n
- W f o r - l o o p - a n a l y s i s
- W f o r m a t - n o n - i s o
- W f o r m a t - t y p e - c o n f u s i o n
- W h e a d e r - h y g i e n e
- W i d i o m a t i c - p a r e n t h e s e s
- W i n f i n i t e - r e c u r s i o n
- W l o g i c a l - o p - p a r e n t h e s e s
- W m e t h o d - s i g n a t u r e s
- W m i s s i n g - n o r e t u r n
- W m i s s i n g - v a r i a b l e - d e c l a r a t i o n s
- W m o v e
- W n o n - g c c
- W n o n - v i r t u a l - d t o r
- W n u l l - p o i n t e r - a r i t h m e t i c
- W n u l l a b l e - t o - n o n n u l l - c o n v e r s i o n
- W o v e r - a l i g n e d
- W o v e r l e n g t h - s t r i n g s
- W o v e r l o a d e d - v i r t u a l
- W o v e r r i d i n g - m e t h o d - m i s m a t c h
- W p r a g m a - p a c k
- W p r a g m a - p a c k - s u s p i c i o u s - i n c l u d e
- W q u o t e d - i n c l u d e - i n - f r a m e w o r k - h e a d e r
- W r a n g e - l o o p - a n a l y s i s
- W r e d u n d a n t - m o v e
- W r e d u n d a n t - p a r e n s
- W r e s e r v e d - i d - m a c r o
- W r e t u r n - s t d - m o v e
- W s e l f - a s s i g n
- W s e l f - m o v e
- W s e m i c o l o n - b e f o r e - m e t h o d - b o d y
- W s h a d o w - a l l
- W s h i f t - s i g n - o v e r f l o w
- W s o m e t i m e s - u n i n i t i a l i z e d
- W s t a t i c - i n - i n l i n e
- W s t r i c t - p r o t o t y p e s
- W s t r i c t - s e l e c t o r - m a t c h
- W s t r i n g - c o n v e r s i o n
- W s u p e r - c l a s s - m e t h o d - m i s m a t c h
- W s w i t c h - e n u m
- W t a u t o l o g i c a l - b i t w i s e - c o m p a r e
- W t a u t o l o g i c a l - c o n s t a n t - i n - r a n g e - c o m p a r e
- W t a u t o l o g i c a l - o v e r l a p - c o m p a r e
- W t a u t o l o g i c a l - t y p e - l i m i t - c o m p a r e
- W t a u t o l o g i c a l - u n s i g n e d - e n u m - z e r o - c o m p a r e
- W t a u t o l o g i c a l - u n s i g n e d - z e r o - c o m p a r e
- W u n n e e d e d - i n t e r n a l - d e c l a r a t i o n
- W u n n e e d e d - m e m b e r - f u n c t i o n
- W u n r e a c h a b l e - c o d e - a g g r e s s i v e
- W u n u s e d - l a b e l
- W u n u s e d - l a m b d a - c a p t u r e
- W u n u s e d - l o c a l - t y p e d e f
- W u n u s e d - v a r i a b l e
- W v l a - e x t e n s i o n
- W z e r o - l e n g t h - a r r a y
- W n o - s i g n - c o n v e r s i o n
- W n o - s h o r t e n - 6 4 - t o - 3 2
)
endif ( )
else ( )
message ( FATAL_ERROR "Unsupported compiler!" )
endif ( )
include_directories (