mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Merge pull request #15805 from fp64/add-wformat
Add -Wformat (see issue #15792), no idea if ok.
This commit is contained in:
commit
929266cc9e
@ -350,6 +350,9 @@ if(NOT MSVC)
|
||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2 -D_NDEBUG")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELWITHDEBINFO} -O2 -g -D_NDEBUG")
|
||||
|
||||
# Enable checking printf-like format strings (also works for logging functions)
|
||||
add_definitions(-Wformat)
|
||||
|
||||
# Disable some warnings
|
||||
add_definitions(-Wno-multichar)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user