[pygobject/more-build-warnings] Enable -Wcast-align, -Wlogical-op
- From: Christoph Reiter <creiter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject/more-build-warnings] Enable -Wcast-align, -Wlogical-op
- Date: Thu, 12 Apr 2018 13:56:25 +0000 (UTC)
commit 951f848cfac3eefa1fbe258d300d519aa28d9322
Author: Christoph Reiter <reiter christoph gmail com>
Date: Thu Apr 12 15:55:05 2018 +0200
Enable -Wcast-align, -Wlogical-op
setup.py | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/setup.py b/setup.py
index 6e012acc..f1d443dc 100755
--- a/setup.py
+++ b/setup.py
@@ -874,11 +874,9 @@ def add_ext_compiler_flags(ext, compiler, _cache={}):
args = [
"-Wall",
"-Warray-bounds",
- # "-Wcast-align",
+ "-Wcast-align",
"-Wdeclaration-after-statement",
- # "-Wdouble-promotion",
"-Wduplicated-branches",
- # "-Wduplicated-cond",
"-Wextra",
"-Wformat=2",
"-Wformat-nonliteral",
@@ -887,7 +885,7 @@ def add_ext_compiler_flags(ext, compiler, _cache={}):
"-Winit-self",
"-Winline",
"-Wjump-misses-init",
- # "-Wlogical-op",
+ "-Wlogical-op",
"-Wmissing-declarations",
"-Wmissing-format-attribute",
"-Wmissing-include-dirs",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]