mirror of
https://git.rtems.org/rtems-tools/
synced 2025-07-24 09:21:57 +08:00
misc/wscript: Specify C language version
CentOS 7 has gcc 4.8 which defaults to C90 and this results in warnings for code that is valid C99 but not C90.
This commit is contained in:
parent
cebdafe8a6
commit
04394f4353
@ -51,7 +51,8 @@ def build(bld):
|
||||
#
|
||||
conf['warningflags'] = ['-Wall', '-Wextra', '-pedantic']
|
||||
conf['optflags'] = bld.env.C_OPTS
|
||||
conf['cflags'] = ['-pipe', '-g'] + conf['optflags']
|
||||
cstd = '-std=c99'
|
||||
conf['cflags'] = [cstd] + ['-pipe', '-g'] + conf['optflags']
|
||||
conf['linkflags'] = ['-g']
|
||||
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user