[Midnightbsd-cvs] src [9575] trunk/share/mk/bsd.sys.mk: fix cwarn flag to use the current enum conversion as it exists in clang 3.3+

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Tue Sep 19 11:58:01 EDT 2017


Revision: 9575
          http://svnweb.midnightbsd.org/src/?rev=9575
Author:   laffer1
Date:     2017-09-19 11:58:01 -0400 (Tue, 19 Sep 2017)
Log Message:
-----------
fix cwarn flag to use the current enum conversion as it exists in clang 3.3+

Modified Paths:
--------------
    trunk/share/mk/bsd.sys.mk

Modified: trunk/share/mk/bsd.sys.mk
===================================================================
--- trunk/share/mk/bsd.sys.mk	2017-09-19 15:51:10 UTC (rev 9574)
+++ trunk/share/mk/bsd.sys.mk	2017-09-19 15:58:01 UTC (rev 9575)
@@ -70,7 +70,7 @@
 .endif # WARNS <= 6
 .if ${WARNS} <= 3
 CWARNFLAGS+=	-Wno-tautological-compare -Wno-unused-value\
-		-Wno-parentheses-equality -Wno-unused-function -Wno-conversion
+		-Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion
 .endif # WARNS <= 3
 .if ${WARNS} <= 2
 CWARNFLAGS+=	-Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter
@@ -123,12 +123,11 @@
 CFLAGS+=	 -Qunused-arguments
 .endif # CLANG
 
-.if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "ia64" && \
-    ${MACHINE_CPUARCH} != "arm" && ${MACHINE_CPUARCH} != "mips"
+.if ${MK_SSP} != "no" && ${MACHINE_CPUARCH} != "arm" 
 # Don't use -Wstack-protector as it breaks world with -Werror.
 SSP_CFLAGS?=	-fstack-protector
 CFLAGS+=	${SSP_CFLAGS}
-.endif # SSP && !IA64 && !ARM && !MIPS
+.endif # SSP && !ARM
 
 # Allow user-specified additional warning flags
 CFLAGS+=	${CWARNFLAGS}



More information about the Midnightbsd-cvs mailing list