From 0a646b9715a67b89ff67b17b35a75dd0f88d02f2 Mon Sep 17 00:00:00 2001 From: Conrad Meyer Date: Mon, 12 Mar 2018 05:41:27 +0000 Subject: [PATCH] Implement NO_WCAST_QUAL for gcc4.2 architectures --- sys/conf/kern.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk index d85351d977c..82d8b4b912b 100644 --- a/sys/conf/kern.mk +++ b/sys/conf/kern.mk @@ -68,6 +68,9 @@ CWARNEXTRA+= -Wno-error=misleading-indentation \ .else # For gcc 4.2, eliminate the too-often-wrong warnings about uninitialized vars. CWARNEXTRA?= -Wno-uninitialized +# GCC 4.2 doesn't have -Wno-error=cast-qual, so just disable the warning for +# the few files that are already known to generate cast-qual warnings. +NO_WCAST_QUAL= -Wno-cast-qual .endif .endif