HomeFreeBSD

GCC 9.0: Fix ztest "directive argument is not a nul-terminated string"

Description

GCC 9.0: Fix ztest "directive argument is not a nul-terminated string"

GCC 9.0 is complaining because we're trying to print strings that
are defined like this:

.zo_pool = { 'z', 't', 'e', 's', 't', '\0' },

Fix them by making them actual strings.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8330

Details

Provenance
Tony Hutter <hutter2@llnl.gov>Authored on Jan 23 2019, 7:17 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 28 2019, 6:11 PM
Parents
rG26a856594f73: Linux 5.0 compat: Fix bio_set_dev()
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcaacc6e4c400: GCC 9.0: Fix ztest "directive argument is not a nul-terminated string" (authored by Tony Hutter <hutter2@llnl.gov>).Jan 28 2019, 6:11 PM