makepanda: enable more warnings by default

This commit is contained in:
rdb 2018-05-30 11:12:15 +02:00
parent 6b726fa697
commit c17cb11dfa
1 changed files with 3 additions and 0 deletions

View File

@ -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: