]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add -Wno-declaration-after-statement to KERNELCPPFLAGS
authorBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 28 Jan 2017 20:12:25 +0000 (12:12 -0800)
committerGitHub <noreply@github.com>
Sat, 28 Jan 2017 20:12:25 +0000 (12:12 -0800)
commit3130b84e94717fe9aad67a14defe79bb7f10fa9f
tree19f697e2cf41e33464a96a29d1c2014304f0a8b5
parent721ed0ee86463cb3e4a562d86783fd1372182367
Add -Wno-declaration-after-statement to KERNELCPPFLAGS

Disable the warnings regarding ISO C90 forbidding mixed
declarations and code.  While this functionality was
introduced as part of C99 gcc does allow this in C90
mode as an extension.

https://gcc.gnu.org/onlinedocs/gcc/Mixed-Declarations.html#Mixed-Declarations

Allowing this usage helps minimize the changes required
when porting patches from OpenZFS.  The downside here is
that this functionality is specific to gcc.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5686
config/kernel.m4