Print this page
6771 end-of-loop code not reached in common/dnssd_clientstub.c

@@ -19,10 +19,11 @@
 # CDDL HEADER END
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 # Copyright 2016 Toomas Soome <tsoome@me.com>
+# Copyright 2016 Gary Mills
 #
 
 LIBRARY =       libdns_sd.a
 VERS =          .1
 OBJECTS =       dnssd_clientlib.o dnssd_clientstub.o dnssd_ipc.o

@@ -37,10 +38,13 @@
 LDLIBS +=       -lsocket -lnsl -lc
 
 C99MODE =       $(C99_ENABLE)
 CPPFLAGS +=     -I$(SRCDIR) -DNOT_HAVE_SA_LEN -D_XPG4_2 -D__EXTENSIONS__
 
+# Avoid end-of-loop code not reached cc warning
+pics/dnssd_clientstub.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
+
 .PARALLEL =     $(OBJECTS)
 .KEEP_STATE:
 
 lint: lintcheck