File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${GLOBAL_OUTPUT_PATH})
36
36
if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang" OR
37
37
${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU" )
38
38
set (OPT "-O3" )
39
- set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wextra -pedantic -std=c99 -O3 ${OPT} " )
40
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -Woverloaded-virtual -pedantic -std=c++17 -fPIC ${OPT} " )
39
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wextra -Wimplicit-fallthrough - pedantic -std=c99 -O3 ${OPT} " )
40
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -Wextra -Wimplicit-fallthrough - Woverloaded-virtual -pedantic -std=c++17 -fPIC ${OPT} " )
41
41
else ()
42
42
# TODO: Windows support.
43
43
message (FATAL_ERROR "Compiler ${CMAKE_CXX_COMPILER_ID} not supported" )
Original file line number Diff line number Diff line change @@ -732,7 +732,7 @@ class Desugarer {
732
732
} break ;
733
733
734
734
case BOP_MANIFEST_UNEQUAL: invert = true ;
735
- /* fallthrough */
735
+ [[ fallthrough]];
736
736
case BOP_MANIFEST_EQUAL: {
737
737
ast_ = equals (ast->location , ast->left , ast->right );
738
738
if (invert)
Original file line number Diff line number Diff line change @@ -2390,7 +2390,7 @@ class Interpreter {
2390
2390
stack.top ().val2 = scratch;
2391
2391
stack.top ().kind = FRAME_BINARY_OP;
2392
2392
}
2393
- // Falls through.
2393
+ [[fallthrough]];
2394
2394
case FRAME_BINARY_OP: {
2395
2395
const auto &ast = *static_cast <const Binary *>(f.ast );
2396
2396
const Value &lhs = stack.top ().val ;
You can’t perform that action at this time.
0 commit comments