From 3103b3789fb26d9cf9aba2d27f6458fc072ed85a Mon Sep 17 00:00:00 2001 From: "Dwayne C. Litzenberger" Date: Tue, 3 Jul 2012 12:16:53 -0400 Subject: setup.py: Add more compiler warnings and fix unsigned-signed comparisons --- setup.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'setup.py') diff --git a/setup.py b/setup.py index a3d812f..0334939 100644 --- a/setup.py +++ b/setup.py @@ -117,6 +117,11 @@ class PCTBuildExt (build_ext): # Tell GCC to compile using the C99 standard. self.__add_compiler_option("-std=c99") + # More compiler warnings + self.__add_compiler_option("-Wextra") + self.__add_compiler_option("-Wno-missing-field-initializers") + self.__add_compiler_option("-Wno-unused-parameter") + # ... but don't tell that to the aCC compiler on HP-UX if self.compiler.compiler_so[0] == 'cc' and sys.platform.startswith('hp-ux'): self.__remove_compiler_option("-std=c99") -- cgit v1.2.1