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/vi/port/Makefile
          +++ new/usr/src/cmd/vi/port/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 2010 Sun Microsystems, Inc.  All rights reserved.
  24   25  # Use is subject to license terms.
  25   26  #
  26   27  
  27   28  # cmd/vi/port/Makefile
  28   29  
  29   30  PROG= ex
  30   31  XPG4PROG= ex
  31   32  XPG6PROG= ex
  32   33  LIBPROGS= expreserve exrecover
↓ open down ↓ 21 lines elided ↑ open up ↑
  54   55  
  55   56  CERRWARN += -_gcc=-Wno-implicit-function-declaration
  56   57  CERRWARN += -_gcc=-Wno-clobbered
  57   58  CERRWARN += -_gcc=-Wno-parentheses
  58   59  CERRWARN += -_gcc=-Wno-unused-variable
  59   60  CERRWARN += -_gcc=-Wno-unused-label
  60   61  CERRWARN += -_gcc=-Wno-unused-value
  61   62  CERRWARN += -_gcc=-Wno-uninitialized
  62   63  CERRWARN += -_gcc=-Wno-address
  63   64  
       65 +# Suppress errors for: tmp1 n
       66 +ex_vmain.o exobjs.xpg4/ex_vmain.o exobjs.xpg6/ex_vmain.o := \
       67 +    CERRWARN += -_gcc=-Wno-unused-but-set-variable
       68 +
  64   69  #
  65   70  # For message catalogue files
  66   71  #
  67   72  POFILES= $(EXOBJS:%.o=%.po) expreserve.po exrecover.po
  68   73  POFILE= port.po
  69   74  
  70   75  # Include all XPG4 and XPG4ONLY changes in the XPG4 version
  71   76  $(XPG4) := CFLAGS += -DXPG4 -DXPG4ONLY
  72   77  
  73   78  # Include all XPG4 changes, but don't include XPG4ONLY in the XPG6 version
↓ open down ↓ 100 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX