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/amt/Makefile.com
          +++ new/usr/src/cmd/amt/Makefile.com
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13  #
  14   14  # When distributing Covered Code, include this CDDL HEADER in each
  15   15  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16  # If applicable, add the following below this CDDL HEADER, with the
  17   17  # fields enclosed by brackets "[]" replaced with your own identifying
  18   18  # information: Portions Copyright [yyyy] [name of copyright owner]
  19   19  #
  20   20  # CDDL HEADER END
  21   21  #
  22   22  #
       23 +# Copyright 2017 Gary Mills
  23   24  # Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   25  # Use is subject to license terms.
  25   26  #
  26   27  
  27   28  PROG=   amt
  28   29  OBJS=   amt.o
  29   30  SRCS=   $(OBJS:%.o=../%.c)
  30   31  
  31   32  include ../../Makefile.cmd
  32   33  
  33   34  LDLIBS +=       -lelf
  34   35  
  35   36  LINTFLAGS +=    -erroff=E_NAME_USED_NOT_DEF2
  36   37  LINTFLAGS64 +=  -erroff=E_NAME_USED_NOT_DEF2
  37   38  
  38   39  CERRWARN +=     -_gcc=-Wno-uninitialized
  39   40  
       41 +# Suppress errors for: p1 probe
       42 +amt.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
       43 +
  40   44  CLEANFILES      += $(PROG) $(OBJS)
  41   45  
  42   46  .KEEP_STATE:
  43   47  
  44   48  all: $(PROG)
  45   49  
  46   50  $(PROG): $(OBJS)
  47   51          $(LINK.c) $(OBJS) -o $@ $(LDLIBS)
  48   52          $(POST_PROCESS)
  49   53  
  50   54  lint:   lint_SRCS
  51   55  
  52   56  %.o:    ../%.c
  53   57          $(COMPILE.c) $<
  54   58  
  55   59  clean:
  56   60          $(RM) $(CLEANFILES)
  57   61  
  58   62  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX