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/sgs/libld/Makefile.com
          +++ new/usr/src/cmd/sgs/libld/Makefile.com
↓ 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  LIBRARY =       libld.a
  28   29  VERS =          .4
  29   30  
  30   31  COMOBJS =       debug.o         globals.o       util.o
  31   32  
  32   33  COMOBJS32 =     args32.o        entry32.o       exit32.o        groups32.o \
↓ open down ↓ 54 lines elided ↑ open up ↑
  87   88  
  88   89  SRCDIR =        ../common
  89   90  
  90   91  CERRWARN += -_gcc=-Wno-unused-value
  91   92  CERRWARN += -_gcc=-Wno-parentheses
  92   93  CERRWARN += -_gcc=-Wno-uninitialized
  93   94  CERRWARN += -_gcc=-Wno-switch
  94   95  CERRWARN += -_gcc=-Wno-char-subscripts
  95   96  CERRWARN += -_gcc=-Wno-type-limits
  96   97  
       98 +# Suppress the error for: _vdp
       99 +pics/version32.o pics/version64.o := \
      100 +    CERRWARN += -_gcc=-Wno-unused-but-set-variable
      101 +
  97  102  # Location of the shared relocation engines maintained under usr/src/uts.
  98  103  #
  99  104  KRTLD_I386 = $(SRCBASE)/uts/$(VAR_PLAT_i386)/krtld
 100  105  KRTLD_AMD64 = $(SRCBASE)/uts/$(VAR_PLAT_amd64)/krtld
 101  106  KRTLD_SPARC = $(SRCBASE)/uts/$(VAR_PLAT_sparc)/krtld
 102  107  
 103  108  
 104  109  CPPFLAGS +=     -DUSE_LIBLD_MALLOC -I$(SRCBASE)/lib/libc/inc \
 105  110                      -I$(SRCBASE)/uts/common/krtld -I$(SRCBASE)/uts/sparc \
 106  111                      $(VAR_LIBLD_CPPFLAGS)
↓ open down ↓ 67 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX