Skip to content

Commit 41049b9

Browse files
committed
CMakeLists.txt: More pull request reducing changes
1 parent 268b3ee commit 41049b9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,13 @@ else()
3333
-Wpedantic # warn if non-standard C++ is used
3434
-Wconversion # warn on type conversions that may lose data
3535
-Wsign-conversion # warn on sign conversions
36-
-Wmisleading-indentation # warn if identation implies blocks where blocks do not exist
37-
-Wduplicated-cond # warn if if / else chain has duplicated conditions
38-
-Wduplicated-branches # warn if if / else branches have duplicated code
36+
-Wmisleading-indentation # warn if identation implies blocks where blocks
37+
# do not exist
38+
-Wduplicated-cond # warn if if / else chain has duplicated conditions
39+
-Wduplicated-branches # warn if if / else branches have duplicated code
3940
-Wlogical-op # warn about logical operations being used where bitwise were
4041
# probably wanted
41-
-Wnull-dereference # warn if a null dereference is detected
42+
-Wnull-dereference # warn if a null dereference is detected
4243
-Wuseless-cast # warn if you perform a cast to the same type
4344
-Wdouble-promotion # warn if float is implicit promoted to double
4445
-Wformat=2 # warn on security issues around functions that format output
@@ -47,7 +48,7 @@ else()
4748
endif()
4849

4950
add_executable(intro main.cpp)
50-
#target_compile_features(intro PRIVATE cxx_std_14)
51+
target_compile_features(intro PRIVATE cxx_std_17)
5152
target_link_libraries(intro PRIVATE project_warnings --coverage)
5253

5354
enable_testing()

0 commit comments

Comments
 (0)