Use -Wno-pointer-sign

Pointer sign warnings are quite common in FreeBSD code.
This commit is contained in:
Sebastian Huber 2016-10-25 10:19:23 +02:00
parent b01ce52ef4
commit 34545adafd
2 changed files with 3 additions and 1 deletions

View File

@ -164,7 +164,8 @@ def commonFlags():
def commonWarnings():
return ['-Wall',
'-Wno-format']
'-Wno-format',
'-Wno-pointer-sign']
def commonNoWarnings():
return ['-w']

View File

@ -42,6 +42,7 @@ def build(bld):
if bld.env.WARNINGS:
common_flags += ["-Wall"]
common_flags += ["-Wno-format"]
common_flags += ["-Wno-pointer-sign"]
else:
common_flags += ["-w"]
cflags = ['-std=gnu11'] + common_flags