Skip to content

Commit 5a3842c

Browse files
committed
Omit -Wno-missing-braces from Makefiles and CMakeLists.txt
1 parent 57197f3 commit 5a3842c

10 files changed

Lines changed: 12 additions & 13 deletions

File tree

contrib/lest_expect_abort/example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if( ${CMAKE_GENERATOR} MATCHES "Visual" )
3737
else()
3838
foreach( name ${TARGETS} )
3939
set( target "contrib-abort-${name}" )
40-
target_compile_options( ${target} PUBLIC -std=c++11 -Wall -Wno-missing-braces )
40+
target_compile_options( ${target} PUBLIC -std=c++11 -Wall )
4141
endforeach()
4242
endif()
4343

contrib/lest_expect_abort/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ else()
3131
add_executable( ${target} ${name}.cpp )
3232
add_executable( ${target}_cpp03 ${name}.cpp )
3333

34-
target_compile_options( ${target} PUBLIC -std=c++11 -Wall -Wno-missing-braces -Dlest_FEATURE_AUTO_REGISTER=1 )
35-
target_compile_options( ${target}_cpp03 PUBLIC -std=c++03 -Wall -Wno-missing-braces -Dlest_FEATURE_AUTO_REGISTER=1 )
34+
target_compile_options( ${target} PUBLIC -std=c++11 -Wall -Dlest_FEATURE_AUTO_REGISTER=1 )
35+
target_compile_options( ${target}_cpp03 PUBLIC -std=c++03 -Wall -Dlest_FEATURE_AUTO_REGISTER=1 )
3636
endforeach()
3737
endif()
3838

contrib/lest_expect_assert/example/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if( ${CMAKE_GENERATOR} MATCHES "Visual" )
3434
else()
3535
foreach( name ${TARGETS} )
3636
set( target "contrib-assert-${name}" )
37-
target_compile_options( ${target} PUBLIC -std=c++11 -Wall -Wno-missing-braces )
37+
target_compile_options( ${target} PUBLIC -std=c++11 -Wall )
3838
endforeach()
3939
endif()
4040

contrib/lest_expect_assert/test/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ else()
2929
add_executable( ${target} ${name}.cpp )
3030
add_executable( ${target}_cpp03 ${name}.cpp )
3131

32-
target_compile_options( ${target} PUBLIC -std=c++11 -Wall -Wno-missing-braces -Dlest_FEATURE_AUTO_REGISTER=1 )
33-
target_compile_options( ${target}_cpp03 PUBLIC -std=c++03 -Wall -Wno-missing-braces -Dlest_FEATURE_AUTO_REGISTER=1 )
32+
target_compile_options( ${target} PUBLIC -std=c++11 -Wall -Dlest_FEATURE_AUTO_REGISTER=1 )
33+
target_compile_options( ${target}_cpp03 PUBLIC -std=c++03 -Wall -Dlest_FEATURE_AUTO_REGISTER=1 )
3434
endforeach()
3535
endif()
3636

example/BUCK

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ for x in examples:
1515
'-std=c++11',
1616
'-Wall',
1717
'-Wextra',
18-
'-Wno-missing-braces',
1918
'-Dlest_FEATURE_AUTO_REGISTER=1',
2019
],
2120
deps = [

example/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# -Dlest_FEATURE_REGEX_SEARCH=0
99
# -Dlest_FEATURE_TIME=1
1010

11-
CXXFLAGS := -Wall -Wextra -Wno-missing-braces -I../include
11+
CXXFLAGS := -Wall -Wextra -I../include
1212
CXXFLAGS03 := $(CXXFLAGS) -std=c++03
1313
CXXFLAGS11 := $(CXXFLAGS) -std=c++11
1414

example/Makefile.win.gcc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# -Dlest_FEATURE_REGEX_SEARCH=0
99
# -Dlest_FEATURE_TIME=1
1010

11-
CXXFLAGS := -Wall -Wextra -Wno-missing-braces -I../include
11+
CXXFLAGS := -Wall -Wextra -I../include
1212
CXXFLAGS03 := $(CXXFLAGS) -std=c++03
1313
CXXFLAGS11 := $(CXXFLAGS) -std=c++11
1414

test/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ if( NOT MSVC AND LEST_EXTRA_WARNINGS )
3838
-pedantic # : error: ISO C++11 requires at least one argument for the "..." in a variadic macro
3939
-pedantic-errors
4040
-Wundef
41-
-Wno-missing-braces
4241
-Waggregate-return
4342
-Wcast-align
4443
-Wcast-qual
@@ -102,7 +101,7 @@ elseif( CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|AppleClang" )
102101
set( HAS_STD_FLAGS TRUE )
103102
set( HAS_CPP98_FLAG TRUE )
104103

105-
set( OPTIONS -Wall -Wextra -Wconversion -Wsign-conversion -Wno-missing-braces -fno-elide-constructors )
104+
set( OPTIONS -Wall -Wextra -Wconversion -Wsign-conversion -fno-elide-constructors )
106105
set( DEFINITIONS ${LEST_CONFIG} )
107106

108107
# GNU: available -std flags depends on version

test/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# -Dlest_FEATURE_REGEX_SEARCH=0
88
# -Dlest_FEATURE_TIME=1
99

10-
CXXFLAGS := $(CXXFLAGS) -Wall -Wno-missing-braces -I../include
10+
CXXFLAGS := $(CXXFLAGS) -Wall -I../include
1111
CXXFLAGS03 := $(CXXFLAGS) -std=c++03
1212
CXXFLAGS11 := $(CXXFLAGS) -std=c++11
1313

test/Makefile.win.gcc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# -Dlest_FEATURE_REGEX_SEARCH=0
88
# -Dlest_FEATURE_TIME=1
99

10-
CXXFLAGS := -Wall -Wextra -Weffc++ -Wno-missing-braces -I../include
10+
#CXXFLAGS := -Wall -Wextra -Weffc++ -Wshadow -I../include
11+
CXXFLAGS := -Wall -Wextra -Weffc++ -I../include
1112
CXXFLAGS03 := $(CXXFLAGS) -std=c++03
1213
CXXFLAGS11 := $(CXXFLAGS) -std=c++11
1314

0 commit comments

Comments
 (0)