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/svr4pkg/pkgadm/Makefile
          +++ new/usr/src/cmd/svr4pkg/pkgadm/Makefile
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   22  #
       23 +# Copyright 2017 Gary Mills
  23   24  # Copyright (c) 2017 Peter Tribble.
  24   25  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  25   26  # Use is subject to license terms.
  26   27  #
  27   28  
  28   29  PROG=           pkgadm
  29   30  
  30   31  OBJS=           lock.o          \
  31   32                  main.o
  32   33  
  33   34  include $(SRC)/cmd/svr4pkg/Makefile.svr4pkg
  34   35  
  35   36  LDLIBS  +=      -lpkg -ladm -lgen
  36   37  
       38 +# Suppress errors for: funcSigint funcSighup pls pld
       39 +lock.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
       40 +
  37   41  .KEEP_STATE:
  38   42  all:            $(PROG)
  39   43  
  40   44  install:        all $(ROOTPROG)
  41   45  
  42   46  include $(SRC)/cmd/svr4pkg/Makefile.svr4pkg.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX