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/gss/gssd/Makefile
          +++ new/usr/src/cmd/gss/gssd/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  TESTPROG = gssdtest
  27   28  
  28   29  OUTPUT_OPTION = -I.
  29   30  
  30   31  PROG= gssd
  31   32  
↓ open down ↓ 36 lines elided ↑ open up ↑
  68   69  DIRS=   $(ROOTLIB)
  69   70  
  70   71  CPPFLAGS += -I$(SRC)/uts/common/gssapi/include
  71   72  COPTFLAG += $(XESS) #-I$(KINCDIR) 
  72   73  
  73   74  CERRWARN += -_gcc=-Wno-unused-variable
  74   75  CERRWARN += -_gcc=-Wno-implicit-function-declaration
  75   76  CERRWARN += -_gcc=-Wno-parentheses
  76   77  CERRWARN += -_gcc=-Wno-uninitialized
  77   78  
       79 +# Suppress error: typedef locally defined but not used
       80 +gssd_proc.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
       81 +
  78   82  LDLIBS += -lgss -lnsl
  79   83  
  80   84  gssd := MAPFILES = $(MAPFILE.INT) $(MAPFILE.NGB)
  81   85  gssd := LDFLAGS += $(MAPFILES:%=-M%)
  82   86  
  83   87  $(GPROGS) := CPPFLAGS += -DSYSV -DSunOS=50 
  84   88  
  85   89  .KEEP_STATE:
  86   90  
  87   91  all: $(PROG) $(TESTPROG)
↓ open down ↓ 75 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX