[polly] r284302 - cmake: avoid "zero-length gnu_printf format string" warning in gcc 6.1.1
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 14 22:08:12 PDT 2016
Author: grosser
Date: Sat Oct 15 00:08:12 2016
New Revision: 284302
URL: http://llvm.org/viewvc/llvm-project?rev=284302&view=rev
Log:
cmake: avoid "zero-length gnu_printf format string" warning in gcc 6.1.1
Contributed-by: Andy Gibbs <andyg1001 at hotmail.co.uk>
Modified:
polly/trunk/lib/External/CMakeLists.txt
Modified: polly/trunk/lib/External/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/CMakeLists.txt?rev=284302&r1=284301&r2=284302&view=diff
==============================================================================
--- polly/trunk/lib/External/CMakeLists.txt (original)
+++ polly/trunk/lib/External/CMakeLists.txt Sat Oct 15 00:08:12 2016
@@ -123,12 +123,12 @@ endif ()
check_c_source_compiles_numeric("
#include <stdio.h>
- 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 <stdio.h>
- 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)
More information about the llvm-commits
mailing list