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/fm/fmd/Makefile.fmd
          +++ new/usr/src/cmd/fm/fmd/Makefile.fmd
↓ open down ↓ 13 lines elided ↑ open up ↑
  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  # Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
  23   23  # Copyright 2015 RackTop Systems.
  24      -# Copyright (c) 2018, Joyent, Inc.
       24 +# Copyright 2019, Joyent, Inc.
  25   25  #
  26   26  
  27   27  .KEEP_STATE:
  28   28  
  29   29  SRCS += fmd.c \
  30   30          fmd_api.c \
  31   31          fmd_alloc.c \
  32   32          fmd_asru.c \
  33   33          fmd_buf.c \
  34   34          fmd_builtin.c \
↓ open down ↓ 79 lines elided ↑ open up ↑
 114  114  $(ROOTMANIFEST) := FILEMODE = 0444
 115  115  
 116  116  $(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
 117  117  CPPFLAGS += -I. -I../common
 118  118  CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
 119  119  CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
 120  120  LINTFLAGS += -mu
 121  121  CERRWARN += -_gcc=-Wno-switch
 122  122  CERRWARN += -_gcc=-Wno-parentheses
 123  123  CERRWARN += -_gcc=-Wno-uninitialized
 124      -CERRWARN += -_gcc=-Wno-unused-variable
 125  124  CERRWARN += -_gcc=-Wno-clobbered
      125 +$(RELEASE_BUILD)CERRWARN += -_gcc=-Wno-unused-but-set-variable
      126 +CERRWARN += -_gcc=-Wno-unused-variable
 126  127  
 127  128  # not linted
 128  129  SMATCH=off
 129  130  
 130  131  $(PROG) := LDFLAGS += -R/usr/lib/fm
 131  132  $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \
 132  133                  -luuid -lnvpair -lexacct -lnsl -lumem -ldevinfo -lfmd_msg
 133  134  
 134  135  $(DMOD) := CFLAGS += $(CC_PICFLAGS) -G $(XREGSFLAG)
 135  136  $(DMOD) := LDFLAGS += $(ZTEXT) $(ZDEFS) $(MAPFILE-DMOD:%=-M%)
↓ open down ↓ 125 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX