未验证 提交 32cb7e22 编写于 作者: W Wang Xin 提交者: GitHub

add -Werror=format for macos (#47216)

上级 d6208aad
......@@ -214,7 +214,7 @@ if(APPLE)
CACHE STRING "Build architectures for OSX" FORCE)
endif()
# On Mac OS X register class specifier is deprecated and will cause warning error on latest clang 10.0
set(COMMON_FLAGS -Wno-deprecated-register)
set(COMMON_FLAGS -Wno-deprecated-register -Werror=format)
endif()
if(WITH_HETERPS AND WITH_PSLIB)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册