summaryrefslogtreecommitdiff
path: root/testing/cffi0
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2019-11-07 12:24:21 +0100
committerArmin Rigo <arigo@tunes.org>2019-11-07 12:24:21 +0100
commit95724a60eb1ed1f8b508471405801697d0b28758 (patch)
treef8c7a1a9c87da61942b26a8377d9c42c3d3f623d /testing/cffi0
parent33d747324c70eb197be7da7130df5a3bee85a566 (diff)
downloadcffi-95724a60eb1ed1f8b508471405801697d0b28758.tar.gz
Tweak the '-Wno-*' arguments passed to gcc during tests
Diffstat (limited to 'testing/cffi0')
-rw-r--r--testing/cffi0/test_verify.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/testing/cffi0/test_verify.py b/testing/cffi0/test_verify.py
index f4ea092..52ce214 100644
--- a/testing/cffi0/test_verify.py
+++ b/testing/cffi0/test_verify.py
@@ -3,6 +3,7 @@ import pytest
import sys, os, math, weakref
from cffi import FFI, VerificationError, VerificationMissing, model, FFIError
from testing.support import *
+from testing.support import extra_compile_args
lib_m = ['m']
@@ -13,17 +14,6 @@ if sys.platform == 'win32':
lib_m = ['msvcrt']
pass # no obvious -Werror equivalent on MSVC
else:
- if (sys.platform == 'darwin' and
- [int(x) for x in os.uname()[2].split('.')] >= [11, 0, 0]):
- # assume a standard clang or gcc
- extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion']
- # special things for clang
- extra_compile_args.append('-Qunused-arguments')
- else:
- # assume a standard gcc
- extra_compile_args = ['-Werror', '-Wall', '-Wextra', '-Wconversion',
- '-Wno-unused-parameter']
-
class FFI(FFI):
def verify(self, *args, **kwds):
return super(FFI, self).verify(