diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-05 11:30:44 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-04-05 11:30:44 +0200 |
commit | 5f961b426b9bd25956e5364770c71c34c414d4e6 (patch) | |
tree | 0328b383b91ba4be1e22e3f636bcd689cee0573d /setup.py | |
parent | 8b55a207cdb8a1ec5c1cdcce48f69d292192f9b7 (diff) | |
download | pygobject-5f961b426b9bd25956e5364770c71c34c414d4e6.tar.gz |
build: use -Wconversion -Wno-sign-conversion. Fixes #191
In some cases changing the type used was enough, in some others I just force
casted things as too many changes would be required and overflow unlikely
(for array marshalling the cache uses gssize while the marshalling code uses
garray and thus guint)
My hope is that having this enabled will improve things gradually with
future cleanups.
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -799,6 +799,7 @@ def add_ext_compiler_flags(ext, compiler, _cache={}): "-Wundef", "-Wunused-but-set-variable", "-Wwrite-strings", + "-Wconversion", ] args += [ @@ -806,6 +807,7 @@ def add_ext_compiler_flags(ext, compiler, _cache={}): "-Wno-missing-field-initializers", "-Wno-unused-parameter", "-Wno-discarded-qualifiers", + "-Wno-sign-conversion", ] # silence clang for unused gcc CFLAGS added by Debian |