mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 20:49:17 +08:00
Use -Wno-pointer-sign
Pointer sign warnings are quite common in FreeBSD code.
This commit is contained in:
parent
b01ce52ef4
commit
34545adafd
@ -164,7 +164,8 @@ def commonFlags():
|
|||||||
|
|
||||||
def commonWarnings():
|
def commonWarnings():
|
||||||
return ['-Wall',
|
return ['-Wall',
|
||||||
'-Wno-format']
|
'-Wno-format',
|
||||||
|
'-Wno-pointer-sign']
|
||||||
|
|
||||||
def commonNoWarnings():
|
def commonNoWarnings():
|
||||||
return ['-w']
|
return ['-w']
|
||||||
|
@ -42,6 +42,7 @@ def build(bld):
|
|||||||
if bld.env.WARNINGS:
|
if bld.env.WARNINGS:
|
||||||
common_flags += ["-Wall"]
|
common_flags += ["-Wall"]
|
||||||
common_flags += ["-Wno-format"]
|
common_flags += ["-Wno-format"]
|
||||||
|
common_flags += ["-Wno-pointer-sign"]
|
||||||
else:
|
else:
|
||||||
common_flags += ["-w"]
|
common_flags += ["-w"]
|
||||||
cflags = ['-std=gnu11'] + common_flags
|
cflags = ['-std=gnu11'] + common_flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user