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/lib/udapl/udapl_tavor/Makefile.com
          +++ new/usr/src/lib/udapl/udapl_tavor/Makefile.com
↓ 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  #
  23   23  # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24  #
  25      -# Copyright (c) 2018, Joyent, Inc.
       25 +# Copyright 2019, Joyent, Inc.
  26   26  
  27   27  LIBRARY=        udapl_tavor.a
  28   28  VERS=           .1
  29   29  
  30   30  LOCOBJS =       \
  31   31          dapl_cno_create.o \
  32   32          dapl_cno_free.o \
  33   33          dapl_cno_modify_agent.o \
  34   34          dapl_cno_query.o \
  35   35          dapl_cno_util.o \
↓ open down ↓ 110 lines elided ↑ open up ↑
 146  146  CPPFLAGS +=     -I$(SRC)/uts/common
 147  147  CPPFLAGS +=     -I$(SRC)/uts/common/sys/ib/clients
 148  148  CFLAGS +=       $(CCVERBOSE)
 149  149  LINTFLAGS +=    -DDAPL_DBG
 150  150  LINTFLAGS64 +=  -DDAPL_DBG
 151  151  
 152  152  CERRWARN +=     -_gcc=-Wno-parentheses
 153  153  CERRWARN +=     -_gcc=-Wno-uninitialized
 154  154  CERRWARN +=     -_gcc=-Wno-switch
 155  155  
      156 +$(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
      157 +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused
      158 +
 156  159  # not linted
 157  160  SMATCH=off
 158  161  
 159      -$(NOT_RELEASE_BUILD)CPPFLAGS += -DDAPL_DBG
 160      -
 161  162  .KEEP_STATE:
 162  163  
 163  164  all: $(LIBS)
 164  165  
 165  166  debug: all
 166  167  
 167  168  lint: lintcheck
 168  169  
 169  170  pics/%.o: $(TAVORSRCDIR)/%.c
 170  171          $(COMPILE.c) -o $@ $<
 171  172          $(POST_PROCESS_O)
 172  173  
 173  174  include $(SRC)/lib/Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX