|
|
531008 |
From 8d98b324fabcad6b09f9c734f79e6da9f9e85786 Mon Sep 17 00:00:00 2001
|
|
|
4da1f5 |
From: rpm-build <rpm-build>
|
|
|
4da1f5 |
Date: Thu, 23 Feb 2017 08:17:07 +0100
|
|
|
531008 |
Subject: [PATCH] Do not use -Werror during build
|
|
|
4da1f5 |
MIME-Version: 1.0
|
|
|
4da1f5 |
Content-Type: text/plain; charset=UTF-8
|
|
|
4da1f5 |
Content-Transfer-Encoding: 8bit
|
|
|
4da1f5 |
|
|
|
4da1f5 |
There are new warnings when setools are built with gcc 7 therefore we
|
|
|
4da1f5 |
want to suppress -Werror for now
|
|
|
4da1f5 |
|
|
|
4da1f5 |
Fixes:
|
|
|
4da1f5 |
libqpol/policy_extend.c: In function ‘policy_extend’:
|
|
|
4da1f5 |
libqpol/policy_extend.c:161:27: error: ‘%04zd’ directive output may be truncated writing between 4 and 10 bytes into a region of size 5 [-Werror=format-truncation=]
|
|
|
4da1f5 |
snprintf(buff, 9, "@ttr%04zd", i + 1);
|
|
|
4da1f5 |
^~~~~
|
|
|
4da1f5 |
libqpol/policy_extend.c:161:22: note: directive argument in the range [1, 4294967295]
|
|
|
4da1f5 |
snprintf(buff, 9, "@ttr%04zd", i + 1);
|
|
|
4da1f5 |
^~~~~~~~~~~
|
|
|
4da1f5 |
In file included from /usr/include/stdio.h:939:0,
|
|
|
4da1f5 |
from /usr/include/sepol/policydb/policydb.h:53,
|
|
|
4da1f5 |
from libqpol/policy_extend.c:29:
|
|
|
4da1f5 |
/usr/include/bits/stdio2.h:64:10: note: ‘__builtin___snprintf_chk’ output between 9 and 15 bytes into a destination of size 9
|
|
|
4da1f5 |
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
|
|
|
4da1f5 |
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
4da1f5 |
__bos (__s), __fmt, __va_arg_pack ());
|
|
|
4da1f5 |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
4da1f5 |
cc1: all warnings being treated as errors
|
|
|
4da1f5 |
error: command 'gcc' failed with exit status 1
|
|
|
4da1f5 |
---
|
|
|
4da1f5 |
setup.py | 2 +-
|
|
|
4da1f5 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
4da1f5 |
|
|
|
4da1f5 |
diff --git a/setup.py b/setup.py
|
|
|
531008 |
index 457c830..4dcb301 100644
|
|
|
4da1f5 |
--- a/setup.py
|
|
|
4da1f5 |
+++ b/setup.py
|
|
|
531008 |
@@ -106,7 +106,7 @@ ext_py_mods = [Extension('setools.policyrep', ['setools/policyrep.pyx'],
|
|
|
4da1f5 |
libraries=['selinux', 'sepol'],
|
|
|
4da1f5 |
library_dirs=lib_dirs,
|
|
|
4da1f5 |
define_macros=macros,
|
|
|
4da1f5 |
- extra_compile_args=['-Werror', '-Wextra',
|
|
|
4da1f5 |
+ extra_compile_args=['-Wextra',
|
|
|
4da1f5 |
'-Waggregate-return',
|
|
|
4da1f5 |
'-Wfloat-equal',
|
|
|
4da1f5 |
'-Wformat', '-Wformat=2',
|
|
|
4da1f5 |
--
|
|
|
531008 |
2.25.1
|
|
|
4da1f5 |
|