diff options
author | Joel Sherrill <joel@rtems.org> | 2021-03-30 16:13:54 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2021-04-02 09:29:57 -0500 |
commit | 04394f4353a0f732b5c20c1f3efc596f6525669a (patch) | |
tree | ca7a07b69590c2d43ebd9abf407ca8984867cba7 /misc | |
parent | rtems-bin2c.c: Define _XOPEN_SOURCE to 700 for strnlen() visibility (diff) | |
download | rtems-tools-04394f4353a0f732b5c20c1f3efc596f6525669a.tar.bz2 |
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.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/wscript | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/wscript b/misc/wscript index 521eddf..21e7f75 100644 --- a/misc/wscript +++ b/misc/wscript @@ -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'] # |