Print this page
10804 Enable unused warnings outside of uts
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/intel/Makefile.kmdb
          +++ new/usr/src/cmd/mdb/intel/Makefile.kmdb
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
  25      -# Copyright 2018 Joyent, Inc.
       25 +# Copyright 2019, Joyent, Inc.
  26   26  #
  27   27  
  28   28  PROMSRCS += \
  29   29          prom_env.c \
  30   30          prom_getchar.c \
  31   31          prom_init.c \
  32   32          prom_printf.c \
  33   33          prom_putchar.c
  34   34  
  35   35  KMDBSRCS += \
↓ open down ↓ 13 lines elided ↑ open up ↑
  49   49  
  50   50  CTXOFFUSERS = \
  51   51          kmdb_setcontext.o
  52   52  
  53   53  CPPFLAGS += -DDIS_TEXT
  54   54  
  55   55  $(CTXOFFUSERS) $(CTXOFFUSERS:%.o=%.ln): kmdb_context_off.h
  56   56  
  57   57  kaif_activate.o kaif_activate.ln := CPPFLAGS += -D_MACHDEP -D_KMEMUSER
  58   58  
       59 +$(RELEASE_BUILD)kaif.o := CERRWARN += -_gcc=-Wno-unused
       60 +
  59   61  STANDLIBS += \
  60   62          ../libstandctf/libstandctf.so \
  61   63          $(SRC)/lib/libumem/$(MACHDIR)/libstandumem.so \
  62   64          ../libstand/libstand.a
  63   65  
  64   66  KMDBLIBS = $(STANDLIBS) ../mdb_ks/kmod/mdb_ks
  65   67  
  66   68  MAPFILE_SOURCES = \
  67   69          $(MAPFILE_SOURCES_COMMON) \
  68   70          ../../kmdb/kmdb_dpi_isadep.h \
  69   71          $(MAPFILE_SOURCES_$(MACH))
  70   72  
  71   73  %.o: ../../../../../uts/intel/promif/%.c
  72   74          $(COMPILE.c) $<
  73   75          $(CTFCONVERT_O)
  74   76  
  75   77  %.ln: ../../../../../uts/intel/promif/%.c
  76   78          $(LINT.c) -c $<
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX