From c17cb11dfaae8cd8b9d5a8fc32dda25ccc615839 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 30 May 2018 11:12:15 +0200 Subject: [PATCH] makepanda: enable more warnings by default --- makepanda/makepanda.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index 6ba8974c8e..92ddeaebcb 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -1354,6 +1354,9 @@ def CompileCxx(obj,src,opts): if (optlevel==3): cmd += " -O2" if (optlevel==4): cmd += " -O3 -DNDEBUG" + # Enable more warnings. + cmd += " -Wall -Wno-reorder -Wno-unused-function" + if src.endswith(".c"): cmd += ' ' + CFLAGS else: