From 5fb7f95b65f7379bc1cd13818b31dcfb770c24b2 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Sat, 14 Jul 2018 15:52:58 -0400 Subject: [PATCH] setup.py: Add additional compiler flags for newer GCCs. Closes #2 --- setup.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 1b10870..ef77867 100644 --- a/setup.py +++ b/setup.py @@ -77,9 +77,11 @@ ext_py_mods = [Extension('setools.policyrep.libpolicyrep', ['setools/policyrep/l '-Wwrite-strings', '-Wno-unused-parameter', '-Wno-suggest-attribute=format', - '-Wno-sign-compare', # Bison - '-Wno-cast-qual', # libsepol uses const-to-nonconst casts - '-Wno-unreachable-code', # Bison generates unreachable code + '-Wno-sign-compare', + '-Wno-cast-qual', + '-Wno-unreachable-code', + '-Wno-implicit-fallthrough', + '-Wno-cast-function-type', '-fno-exceptions'])] setup(name='setools',