From c3016b4fe479fb9ec7dea72bd5f2974c68f75bbf Mon Sep 17 00:00:00 2001 From: Nick B Date: Fri, 16 Oct 2015 22:01:22 +0100 Subject: [PATCH] Add CPP warning overrides to fix Ubuntu 13.04+ Obviously, the root cause should be addressed but it's a dependency. Looks like Ubuntu 13.04 turned this on by default: https://wiki.ubuntu.com/ToolChain/CompilerFlags#A-Wformat_-Wformat-security `setup.py` now builds fine for me. Fixes #45. --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 190722c..c542582 100644 --- a/setup.py +++ b/setup.py @@ -43,7 +43,7 @@ def get_action(): def get_dirac(): link_args = ['-framework', 'Carbon'] if is_mac else [] - compile_args = [] if is_windows else ['-Wno-unused'] + compile_args = [] if is_windows else ['-Wno-unused', '-Wno-format-security'] pydirac = os.path.join('external', 'pydirac225') lib_sources = [os.path.join(pydirac, 'diracmodule.cpp'), os.path.join(pydirac, 'source', 'Dirac_LE.cpp')] @@ -77,7 +77,7 @@ def get_soundtouch(): if is_linux: sources += ['cpu_detect_x86_gcc.cpp'] - extra_compile_args = ['-O3', '-Wno-unused'] + extra_compile_args = ['-O3', '-Wno-unused','-Wno-format-security'] elif is_mac: sources += ['cpu_detect_x86_gcc.cpp'] extra_compile_args = ['-O3', '-Wno-unused']