From 9e0738fb79b506916e5332c9c88234802960a0aa Mon Sep 17 00:00:00 2001 From: zhangxiaokun Date: Tue, 26 Jan 2021 15:29:59 +0800 Subject: [PATCH] Enable -Werror=format --- ge/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ge/CMakeLists.txt b/ge/CMakeLists.txt index 888f565c..12af76ec 100755 --- a/ge/CMakeLists.txt +++ b/ge/CMakeLists.txt @@ -707,7 +707,7 @@ target_compile_options(ge_runner PRIVATE -O2 -fno-common $<$:-Werror=unused-variable> - $<$:-Werror=unused-const-variable> + $<$:-Werror=unused-const-variable -Werror=format> ) target_include_directories(ge_runner SYSTEM PRIVATE @@ -776,7 +776,7 @@ target_compile_options(ge_compiler PRIVATE -O2 -fno-common $<$:-Werror=unused-variable> - $<$:-Werror=unused-const-variable> + $<$:-Werror=unused-const-variable -Werror=format> ) target_include_directories(ge_compiler SYSTEM PRIVATE