commit 782c6e1e98b4854d983a82a93ae1a795e974acb9
Author: Elan Ruusamäe <[email protected]>
Date:   Sun Oct 2 17:11:45 2016 +0300

    disable format-security due swig generated code
    
    llvm-3.8.0.src/build/tools/lldb/scripts/LLDBWrapPython.cpp: In function 
‘PyObject* _wrap_SBError_SetErrorStringWithFormat__SWIG_3(PyObject*, 
PyObject*)’:
    llvm-3.8.0.src/build/tools/lldb/scripts/LLDBWrapPython.cpp:21362:70: error: 
format not a string literal and no format arguments [-Werror=format-security]
         result = (int)(arg1)->SetErrorStringWithFormat((char const *)arg2);

 llvm.spec | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/llvm.spec b/llvm.spec
index 290d98c..aedec3c 100644
--- a/llvm.spec
+++ b/llvm.spec
@@ -124,9 +124,11 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 # strip corrupts: $RPM_BUILD_ROOT/usr/lib64/llvm-gcc/bin/llvm-c++ ...
 %define                _noautostrip    
.*/\\(libmud.*\\.a\\|bin/llvm-.*\\|lib.*++\\.a\\)
 
-# clang doesn't know it, and leaving it here would pollute llvm-config
+# clang doesn't know -fvar-tracking-assignments, and leaving it here would 
pollute llvm-config
+# -Werror=format-security is for swig
+# TODO: add - -Werror=format-security to tools/lldb/scripts/LLDBWrapPython.cpp
 %define                filterout_c     -fvar-tracking-assignments
-%define                filterout_cxx   -fvar-tracking-assignments
+%define                filterout_cxx   -fvar-tracking-assignments 
-Werror=format-security
 %define                filterout_ccpp  -fvar-tracking-assignments
 
 # std::__once_call, std::__once_callable non-function symbols
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/llvm.git/commitdiff/782c6e1e98b4854d983a82a93ae1a795e974acb9

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to