setup.py: Add additional compiler flags for newer GCCs.

Closes #2
This commit is contained in:
Chris PeBenito 2018-07-14 15:52:58 -04:00
parent 154e8291ea
commit 5fb7f95b65

View File

@ -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',