| From 8ab5a49247d870d92a8287db6134877ebf7a4379 Mon Sep 17 00:00:00 2001 |
| From: Adam Duskett <aduskett@gmail.com> |
| Date: Thu, 12 Oct 2017 22:04:58 -0400 |
| Subject: [PATCH] remove werror flag from setup |
| |
| Compilers older than gcc6 will generate uninitialized variable warnings which |
| will cause compiling to fail. |
| |
| Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> |
| [Refreshed for 4.3.0] |
| Signed-off-by: Adam Duskett <aduskett@gmail.com> |
| --- |
| setup.py | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/setup.py b/setup.py |
| index 457c83049ca5..4dcb30196abf 100644 |
| --- a/setup.py |
| +++ b/setup.py |
| @@ -106,7 +106,7 @@ ext_py_mods = [Extension('setools.policyrep', ['setools/policyrep.pyx'], |
| libraries=['selinux', 'sepol'], |
| library_dirs=lib_dirs, |
| define_macros=macros, |
| - extra_compile_args=['-Werror', '-Wextra', |
| + extra_compile_args=['-Wextra', |
| '-Waggregate-return', |
| '-Wfloat-equal', |
| '-Wformat', '-Wformat=2', |
| -- |
| 2.26.2 |
| |