diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-06-07 16:43:38 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-06-16 15:52:56 +0200 |
commit | 11c3d05118dc4e8d20f518a2bcc6d1e3c58cf479 (patch) | |
tree | e6b183a15b0229728aca957f2396fd91715076e1 | |
parent | bbe2e94bb66b5e263655083dd6ed6bb878e21b74 (diff) | |
download | pygobject-11c3d05118dc4e8d20f518a2bcc6d1e3c58cf479.tar.gz |
build: drop some checks for unsupported Python versions
-rw-r--r-- | meson.build | 7 | ||||
-rwxr-xr-x | setup.py | 6 |
2 files changed, 2 insertions, 11 deletions
diff --git a/meson.build b/meson.build index f8eee63e..1d331f69 100644 --- a/meson.build +++ b/meson.build @@ -98,6 +98,7 @@ else '-Wsign-compare', '-Wstrict-aliasing', '-Wstrict-prototypes', + '-Wswitch-default', '-Wundef', '-Wunused-but-set-variable', '-Wwrite-strings', @@ -118,12 +119,6 @@ else '-fvisibility=hidden', ] - if not ['3.3', '3.4'].contains(python.language_version()) - main_c_args += [ - '-Wswitch-default', - ] - endif - main_c_args = cc.get_supported_arguments(main_c_args) endif @@ -963,16 +963,12 @@ def add_ext_compiler_flags(ext, compiler, _cache={}): "-Wsign-compare", "-Wstrict-aliasing", "-Wstrict-prototypes", + "-Wswitch-default", "-Wundef", "-Wunused-but-set-variable", "-Wwrite-strings", ] - if sys.version_info[:2] != (3, 4): - args += [ - "-Wswitch-default", - ] - args += [ "-Wno-incompatible-pointer-types-discards-qualifiers", "-Wno-missing-field-initializers", |