linuxkm/linuxkm_wc_port.h: override definition of __is_constexpr() from /usr/src/linux/include/linux/const.h with warning-free __builtin_constant_p().

This commit is contained in:
Daniel Pouzzner
2023-06-08 14:43:05 -05:00
parent 3f1dd32f4e
commit e35cb5bc3d

View File

@ -199,6 +199,10 @@
_Pragma("GCC diagnostic pop");
/* avoid -Wpointer-arith, encountered when -DCONFIG_FORTIFY_SOURCE */
#undef __is_constexpr
#define __is_constexpr(x) __builtin_constant_p(x)
/* the kernel uses -std=c89, but not -pedantic, and makes full use of anon
* structs/unions, so we should too.
*/