From f7374a2694cb9997a2c0e8cd4c9c11b095490d97 Mon Sep 17 00:00:00 2001 From: bsrdjan Date: Mon, 9 Mar 2020 10:46:46 +0100 Subject: [PATCH] Fix #147, Compiler warnings cleanup --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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", )