mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-16 07:10:04 +08:00
Use -Wno-pointer-sign
Pointer sign warnings are quite common in FreeBSD code.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user