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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/autofs/Makefile
          +++ new/usr/src/cmd/fs.d/autofs/Makefile
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15  # If applicable, add the following below this CDDL HEADER, with the
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  
  22   22  #
  23   23  # Copyright (c) 1992, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  # Copyright 2015 RackTop Systems.
       25 +# Copyright 2017 Gary Mills
  25   26  #
  26   27  
  27   28  FSTYPE=         autofs
  28   29  AUTO=           automount
  29   30  MOUNT=          mount
  30   31  VERS=           .2
  31   32  DFSHARES=       dfshares
  32   33  SHARE=          share
  33   34  UNSHARE=        unshare
  34   35  LIBPROG=        $(AUTO) $(MOUNT) $(DFSHARES) $(SHARE) $(UNSHARE)
↓ open down ↓ 56 lines elided ↑ open up ↑
  91   92  CPPFLAGS=       -I. -I.. -I../nfs/lib $(CPPFLAGS.master) -D_REENTRANT  \
  92   93                          $(MALLOC_DEBUG)
  93   94  
  94   95  CERRWARN +=     -_gcc=-Wno-parentheses
  95   96  CERRWARN +=     -_gcc=-Wno-unused-variable
  96   97  CERRWARN +=     -_gcc=-Wno-switch
  97   98  CERRWARN +=     -_gcc=-Wno-uninitialized
  98   99  CERRWARN +=     -_gcc=-Wno-unused-label
  99  100  CERRWARN +=     -_gcc=-Wno-unused-function
 100  101  
      102 +# Suppress the error for: lp
      103 +ns_files.o :=   CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      104 +# Suppress the error for: lastread
      105 +autod_nfs.o :=  CERRWARN += -_gcc=-Wno-unused-but-set-variable
      106 +
 101  107  OBJS=           $(AUTOOBJS) $(MOUNTOBJS) $(TYPEOBJS) \
 102  108                  $(SHAREOBJS) $(UNSHAREOBJS)
 103  109  
 104  110  AUTOSRCS=       automount.c $(COMMON:%.o=%.c) $(FSLIBSRC)
 105  111  MOUNTSRCS=      mount.c $(FSLIBSRC)
 106  112  TYPESRCS=       $(LOCAL:%.o=%.c) $(COMMON:%.o=%.c) \
 107  113                  ../nfs/lib/replica.c ../nfs/lib/nfs_sec.c \
 108  114                  ../nfs/lib/nfs_subr.c $(FSLIBSRC) ../nfs/lib/selfcheck.c \
 109  115                  ../nfs/lib/nfs_resolve.c ../nfs/lib/smfcfg.c
 110  116  SHARESRCS=      $(SHARE:%=%.c)
↓ open down ↓ 107 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX