Print this page
8516 Suppress gcc errors with -Wno- in Makefile for usr/src/cmd

@@ -21,10 +21,11 @@
 #
 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # Copyright 2015 RackTop Systems.
+# Copyright 2017 Gary Mills
 #
 
 MYPROG = svc.configd
 MYOBJS = \
         backend.o \

@@ -93,10 +94,13 @@
 $(NATIVE_BUILD)LIBSQLITE =
 
 OBJS += $(OBJSQLITE)
 LDLIBS += $(LIBSQLITE)
 
+# Suppress error for: event_id
+rc_node-native.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
+
 install := TARGET = install
 clobber := TARGET = clobber
 
 .KEEP_STATE:
 .PARALLEL: $(MYOBJS) $(MYOBJS:%.o=%-native.o)