[pygobject/pygobject-3-30] build: drop some checks for unsupported Python versions
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/pygobject-3-30] build: drop some checks for unsupported Python versions
- Date: Sun, 16 Jun 2019 13:56:17 +0000 (UTC)
commit 11c3d05118dc4e8d20f518a2bcc6d1e3c58cf479
Author: Christoph Reiter <reiter christoph gmail com>
Date: Fri Jun 7 16:43:38 2019 +0200
build: drop some checks for unsupported Python versions
meson.build | 7 +------
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
diff --git a/setup.py b/setup.py
index 4c942fd3..d8893e7e 100755
--- a/setup.py
+++ b/setup.py
@@ -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",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]