mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 04:14:32 +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():
|
||||
return ['-Wall',
|
||||
'-Wno-format']
|
||||
'-Wno-format',
|
||||
'-Wno-pointer-sign']
|
||||
|
||||
def commonNoWarnings():
|
||||
return ['-w']
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user