Skip to content

Commit

Permalink
PROTON-2772: make wrong printf format strings a MSVC compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jan 7, 2024
1 parent ed4c1b7 commit 8e264f8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ string (JOIN " " COMMON_WARNING_MSVC "/W4" "/analyze" "/WX"
#"/we6340" # Mismatch on sign: 'unsigned __int64' passed as _Param_(4) when some signed type is required in call to 'ssl_log'.
)

set (CC_WARNING_GNU "-Wno-unused-parameter -Wstrict-prototypes -Wvla -Wsign-compare -Wwrite-strings -Wimplicit-fallthrough=3")
set (CC_WARNING_Clang "-Wno-unused-parameter -Wstrict-prototypes -Wvla -Wsign-compare -Wwrite-strings -Wimplicit-fallthrough")
set (CC_WARNING_MSVC "")
set (CC_WARNING_GNU "-Wno-unused-parameter -Wstrict-prototypes -Wvla -Wsign-compare -Wwrite-strings")
set (CC_WARNING_Clang "-Wno-unused-parameter -Wstrict-prototypes -Wvla -Wsign-compare -Wwrite-strings")
set (CC_WARNING_MSVC "/wd4244 /wd4267 /wd4800 /wd4996 /analyze /we6328 /we6340 /we28251")

set (CXX_WARNING_GNU "")
set (CXX_WARNING_Clang "")
Expand Down

0 comments on commit 8e264f8

Please sign in to comment.