Print this page
More linty cleanup
gag lint errors that stem from lint libraries that the omnios build system does not build

@@ -20,12 +20,10 @@
 #
 #
 # Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
-# ident "%Z%%M% %I%     %E% SMI"
-# 
 
 PROG= fiocompress
 
 SBINLINKS= $(PROG)
 

@@ -34,19 +32,21 @@
 
 include ../Makefile.com
 
 .KEEP_STATE:
 
-LDLIBS +=       -lz
+# There's no lint library for zlib, so only include this when building
+$(PROG) := LDLIBS +=    -lz
 
 CFLAGS +=       -I../../../uts/common
 LINTFLAGS +=    -I../../../uts/common
 
 # definitions for lint
 # until libz is compiled against ON header files (uid/gid)
 LINTFLAGS += -erroff=E_INCONS_ARG_DECL2
 LINTFLAGS += -erroff=E_INCONS_VAL_TYPE_DECL2
+LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
 
 all: $(PROG)
 
 $(PROG): $(OBJS)
         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)