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/sendmail/src/Makefile
          +++ new/usr/src/cmd/sendmail/src/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 (c) 2011 Gary Mills
       22 +# Copyright (c) 2017 Gary Mills
  23   23  
  24   24  #
  25   25  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  26   26  # Use is subject to license terms.
  27   27  #
  28   28  # cmd/sendmail/src/Makefile
  29   29  #
  30   30  
  31   31  PROG=   sendmail
  32   32  
↓ open down ↓ 1 lines elided ↑ open up ↑
  34   34  include         ../Makefile.cmd
  35   35  
  36   36  OBJS= alias.o arpadate.o bf.o collect.o conf.o control.o convtime.o daemon.o \
  37   37          deliver.o domain.o envelope.o err.o headers.o macro.o main.o map.o \
  38   38          mci.o milter.o mime.o parseaddr.o queue.o ratectrl.o readcf.o \
  39   39          recipient.o sasl.o savemail.o sfsasl.o sm_resolve.o srvrsmtp.o stab.o \
  40   40          stats.o sysexits.o tls.o trace.o udb.o usersmtp.o util.o version.o
  41   41  
  42   42  SRCS=   $(OBJS:%.o=%.c)
  43   43  
       44 +# Suppress the error for: align
       45 +conf.o := CERRWARN += -_gcc=-Wno-unused-but-set-variable
       46 +
  44   47  MAPFILES =      $(MAPFILE.INT) $(MAPFILE.NGB)
  45   48  LDFLAGS +=      $(MAPFILES:%=-M%)
  46   49  
  47   50  LDLIBS +=       ../libsmutil/libsmutil.a ../libsm/libsm.a -lresolv -lsocket \
  48   51                  -lnsl ../db/libdb.a -lldap -lsldap -lwrap -lumem \
  49   52                  -lssl -lcrypto -lsasl
  50   53  
  51   54  INCPATH=        -I. -I../include -I../db
  52   55  
  53   56  ENVDEF=         -DNETINET6 -DTCPWRAPPERS -DSTARTTLS -DSASL=20115
↓ open down ↓ 34 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX