diff --git a/setup.py b/setup.py index 643224c..4d8696f 100755 --- a/setup.py +++ b/setup.py @@ -53,6 +53,8 @@ def _read(name): "-fno-strict-aliasing", "-Wall", "-Wno-uninitialized", + "-Wno-deprecated-declarations", + "-Wno-unused-function", "-Wcast-align", "-fPIC", "-pthread", @@ -149,6 +151,9 @@ def _read(name): "-std=c++11", "-mmacosx-version-min={}".format(MACOS_VERSION_MIN), "-I{}/include".format(SAPNWRFC_HOME), + "-Wno-cast-align", + "-Wno-deprecated-declarations", + "-Wno-unused-function", ] LINK_ARGS = [ "-L{}/lib".format(SAPNWRFC_HOME), @@ -209,8 +214,6 @@ def _read(name): setup_requires=["setuptools-git", "Cython", "Sphinx"], cmdclass={"build_ext": Cython.Distutils.build_ext}, # ext_modules=[PYRFC_EXT], - ext_modules=cythonize( - PYRFC_EXT, compiler_directives={"language_level": "2"}, annotate=True - ), + ext_modules=cythonize(PYRFC_EXT, compiler_directives={"language_level": "2"}, annotate=True), test_suite="pyrfc", )