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/db/Makefile
          +++ new/usr/src/cmd/sendmail/db/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 2006 Sun Microsystems, Inc.  All rights reserved.
  24   25  # Use is subject to license terms.
  25   26  #
  26      -# ident "%Z%%M% %I%     %E% SMI"
  27      -#
  28   27  # cmd/sendmail/db/Makefile
  29   28  #
  30   29  
  31   30  include         ../../Makefile.cmd
  32   31  include         ../Makefile.cmd
  33   32  
  34   33  srcdir= .
  35   34  
  36   35  CPPFLAGS = -I. -I$(srcdir)/include -D_REENTRANT $(CPPFLAGS.sm)
  37   36  
↓ open down ↓ 13 lines elided ↑ open up ↑
  51   50          mp_open.o mp_pr.o mp_region.o mp_sync.o mutex.o os_abs.o os_alloc.o \
  52   51          os_config.o os_dir.o os_fid.o os_fsync.o os_map.o os_oflags.o \
  53   52          os_open.o os_rpath.o os_rw.o os_seek.o os_sleep.o os_spin.o os_stat.o \
  54   53          os_tmpdir.o os_unlink.o txn.o txn_auto.o txn_rec.o xa.o xa_db.o \
  55   54          xa_map.o strsep.o
  56   55  
  57   56  SRCS=   $(OBJS:%.o=$(srcdir)/*/%.c)
  58   57  
  59   58  libdb=  libdb.a
  60   59  
       60 +# Suppress errors for: flags info notused1 notused2 notused3
       61 +bt_cursor.o \
       62 +    bt_rec.o \
       63 +    btree_auto.o := \
       64 +    CERRWARN += -_gcc=-Wno-unused-but-set-parameter
       65 +# Suppress errors for: isdeleted dbp t ch i
       66 +bt_recno.o \
       67 +    bt_stat.o \
       68 +    btree_auto.o := \
       69 +    CERRWARN += -_gcc=-Wno-unused-but-set-variable
       70 +# Suppress errors for: notused1 notused2 notused3 pg dbenv info logp redo
       71 +#     key data flags
       72 +db_auto.o \
       73 +    db_conv.o \
       74 +    db_join.o \
       75 +    db_dispatch.o \
       76 +    db_rec.o := \
       77 +    CERRWARN += -_gcc=-Wno-unused-but-set-parameter
       78 +# Suppress errors for: ret ch i save_indx grow_region
       79 +db_am.o \
       80 +    db_auto.o \
       81 +    db_dup.o \
       82 +    db_join.o \
       83 +    db_region.o := \
       84 +    CERRWARN += -_gcc=-Wno-unused-but-set-variable
       85 +# Suppress errors for: key
       86 +dbm.o := CERRWARN += -_gcc=-Wno-unused-but-set-parameter
       87 +# Suppress errors for: dbp notused1 notused2 notused3 info spp db_malloc flags
       88 +hash.o \
       89 +    hash_auto.o \
       90 +    hash_rec.o \
       91 +    hash_stat.o := \
       92 +    CERRWARN += -_gcc=-Wno-unused-but-set-parameter
       93 +# Suppress errors for: ch i mpf
       94 +hash_auto.o \
       95 +    hash_rec.o := \
       96 +    CERRWARN += -_gcc=-Wno-unused-but-set-variable
       97 +# Suppress error for: flags
       98 +lock.o := CERRWARN += -_gcc=-Wno-unused-but-set-parameter
       99 +# Suppress errors for: notused1 notused2 notused3 lsnp info
      100 +log_auto.o \
      101 +    log_rec.o := \
      102 +    CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      103 +# Suppress errors for: off fd
      104 +mutex.o := CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      105 +# Suppress error for: path
      106 +os_map.o := CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      107 +# Suppress errors for: notused1 notused2 notused3 logp redo
      108 +txn_auto.o \
      109 +    txn_rec.o := \
      110 +    CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      111 +# Suppress error for: locker ch i
      112 +txn.o \
      113 +    txn_auto.o := \
      114 +    CERRWARN += -_gcc=-Wno-unused-but-set-variable
      115 +# Suppress errors for: xa_info handle retval rmid flags fdp
      116 +xa.o \
      117 +    xa_db.o := \
      118 +    CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      119 +# Suppress error for: xid
      120 +xa_map.o := CERRWARN += -_gcc=-Wno-unused-but-set-parameter
      121 +
  61  122  .KEEP_STATE:
  62  123  all: $(libdb)
  63  124  
  64  125  .PARALLEL:      $(OBJS)
  65  126  
  66  127  $(libdb): db.h $(OBJS)
  67  128          $(RM) $@
  68  129          $(AR) $(ARFLAGS) $@ $(OBJS)
  69  130  
  70  131  clean:
↓ open down ↓ 73 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX