fix: compiler warnings
This commit is contained in:
@@ -26,12 +26,16 @@ target("Tower Defense")
|
||||
-- strip all symbols
|
||||
add_ldflags("-s")
|
||||
|
||||
set_warnings("all", "error")
|
||||
|
||||
set_optimize("smallest")
|
||||
|
||||
if is_os("windows") then
|
||||
add_ldflags("-static-libgcc", "-static-libstdc++", "-pthread")
|
||||
end
|
||||
|
||||
else
|
||||
add_cxflags("-pedantic -Wall -Wextra -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-declarations -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-conversion -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wswitch-default -Wundef -Wno-unused")
|
||||
end
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user