summaryrefslogtreecommitdiff
path: root/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'setup.py')
-rw-r--r--setup.py5
1 files changed, 5 insertions, 0 deletions
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")