mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
Enable -Wimplicit-fallthrough and use [[fallthrough]] attribute
This commit is contained in:
@@ -761,7 +761,7 @@ if(MSVC)
|
||||
else()
|
||||
# GCC or compatible compilers such as Clang
|
||||
set(WARNING_FLAGS "-Wall -Wextra")
|
||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-parameter -Wno-implicit-fallthrough")
|
||||
set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-parameter")
|
||||
if(WARN_ALL)
|
||||
set(RELEASE_WARNING_FLAGS "${WARNING_FLAGS}")
|
||||
else()
|
||||
|
Reference in New Issue
Block a user