diff --git a/linuxkm/linuxkm_wc_port.h b/linuxkm/linuxkm_wc_port.h index bc17aa57f..2794dba68 100644 --- a/linuxkm/linuxkm_wc_port.h +++ b/linuxkm/linuxkm_wc_port.h @@ -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. */