HomeFreeBSD

Add -Wno-declaration-after-statement to KERNELCPPFLAGS

Description

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

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jan 28 2017, 8:12 PM
GitHub <noreply@github.com>Committed on Jan 28 2017, 8:12 PM
Parents
rG721ed0ee8646: OpenZFS 7580 - ztest failure in dbuf_read_impl
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG3130b84e9471: Add -Wno-declaration-after-statement to KERNELCPPFLAGS (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Jan 28 2017, 8:12 PM