[pygobject/pygobject-3-32] build: drop some checks for unsupported Python versions



commit dea99de09f273a54244af1f3250f6699cfede637
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 50355814..1beda259 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 1e5fe769..47cc1050 100755
--- a/setup.py
+++ b/setup.py
@@ -1001,16 +1001,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]