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/ypcmd/ypupdated/Makefile
          +++ new/usr/src/cmd/ypcmd/ypupdated/Makefile
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12  #
  13   13  # When distributing Covered Code, include this CDDL HEADER in each
  14   14  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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 +# Copyright 2017 Gary Mills
  22   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   24  # Use is subject to license terms.
  24   25  #
  25   26  
  26   27  NETYPPROG =     rpc.ypupdated
  27   28  PROG =          $(NETYPPROG)
  28   29  
  29   30  MANIFEST =      update.xml
  30   31  
  31   32  include ../../Makefile.cmd
↓ open down ↓ 16 lines elided ↑ open up ↑
  48   49  
  49   50  RPCYPUPDATEOBJ =        rpc.ypupdated.o openchild.o
  50   51  
  51   52  OBJS =                  $(RPCYPUPDATEOBJ)
  52   53  
  53   54  SRCS =                  $(OBJS:%.o=%.c)
  54   55  
  55   56  CERRWARN +=             -_gcc=-Wno-implicit-function-declaration
  56   57  CERRWARN +=             -_gcc=-Wno-unused-variable
  57   58  
       59 +# Suppress error: typedef locally defined but not used
       60 +rpc.ypupdated.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
       61 +
  58   62  CLOBBERFILES += ypupdated_prot.h
  59   63  
  60   64  #conditional assignments
  61   65  $(INETSVC)   := FILEMODE=555
  62   66  
  63   67  #install rules
  64   68  
  65   69  .KEEP_STATE:
  66   70  
  67   71  all: $(PROG)
↓ open down ↓ 31 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX