From 4b5e24df9a8559dec580c01439df6082e15ad277 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 15 Oct 2016 05:08:12 +0000 Subject: [PATCH] cmake: avoid "zero-length gnu_printf format string" warning in gcc 6.1.1 Contributed-by: Andy Gibbs llvm-svn: 284302 --- polly/lib/External/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polly/lib/External/CMakeLists.txt b/polly/lib/External/CMakeLists.txt index df7966b..7471cef 100644 --- a/polly/lib/External/CMakeLists.txt +++ b/polly/lib/External/CMakeLists.txt @@ -123,12 +123,12 @@ endif () check_c_source_compiles_numeric(" #include - int main() { snprintf((void*)0, 0, \"\"); return 0; } + int main() { snprintf((void*)0, 0, \" \"); return 0; } " HAVE_DECL_SNPRINTF) check_c_source_compiles_numeric(" #include - int main() { _snprintf((void*)0, 0, \"\"); return 0; } + int main() { _snprintf((void*)0, 0, \" \"); return 0; } " HAVE_DECL__SNPRINTF) if (NOT HAVE_DECL_SNPRINTF AND NOT HAVE_DECL__SNPRINTF) -- 2.7.4