]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix compiling on FreeBSD + gcc - don't assume illmnos bits
authorAdrian Chadd <adrian@freebsd.org>
Thu, 15 Oct 2020 20:07:12 +0000 (13:07 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 10 Nov 2020 23:54:12 +0000 (15:54 -0800)
commit3fcd737478217ab3f4cc518fadb20e1931f13dfe
tree69a1335b42d156427807e23398fd67445fb73d79
parent79a357c2a1fb42f9539af57aa729ca175a8115b9
Fix compiling on FreeBSD + gcc - don't assume illmnos bits

This looks like it was once from the illumnos compat code.
FreeBSD doesn't have cmn_err as a compiler format attribute, so
it definitely errors out.

It doesn't show up on LLVM because it doesn't trigger at all.

Add in the format flags but keep them behind #if 0 for now;
there are too many format issues that trigger when one does
format checking in the shared code.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: adrian chadd <adrian@freebsd.org>
Closes #11068
Closes #11069
include/os/freebsd/spl/sys/ccompile.h