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/keyserv/Makefile
          +++ new/usr/src/cmd/keyserv/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  SBINPROG = keyserv newkey
  27   28  BINPROG = keylogout keylogin domainname chkey
  28   29  
  29   30  MANIFEST= keyserv.xml
  30   31  
  31   32  PROG= $(SBINPROG) $(BINPROG)
↓ open down ↓ 35 lines elided ↑ open up ↑
  67   68  CPPFLAGS += -I. -I$(SRC)/lib/libnsl/include -I$(SRC)/lib/libsldap/common \
  68   69                  -D_REENTRANT
  69   70  
  70   71  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  71   72  CERRWARN +=     -_gcc=-Wno-parentheses
  72   73  CERRWARN +=     -_gcc=-Wno-uninitialized
  73   74  CERRWARN +=     -_gcc=-Wno-unused-variable
  74   75  CERRWARN +=     -_gcc=-Wno-address
  75   76  CERRWARN +=     -_gcc=-Wno-unused-function
  76   77  
       78 +# Suppress error: typedef locally defined but not used
       79 +keyserv.o := CERRWARN += -_gcc=-Wno-unused-local-typedefs
       80 +
  77   81  LDLIBS +=       -lnsl
  78   82  chkey :=        LDLIBS += -lsldap
  79   83  keyserv :=      LDLIBS += -lmp
  80   84  newkey  :=      LDLIBS += -lsldap -lsocket
  81   85  
  82   86  .KEEP_STATE:
  83   87  
  84   88  all: $(PROG)
  85   89  
  86   90  keyserv: $(K_OBJS)  $(KEYSERVOBJS)
↓ open down ↓ 45 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX