Print this page
10080 smatch Makefile changes for usr/src/cmd

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   25  #
  25   26  
  26   27  .KEEP_STATE:
  27   28  
  28   29  SRCS += fmd.c \
  29   30          fmd_api.c \
  30   31          fmd_alloc.c \
  31   32          fmd_asru.c \
  32   33          fmd_buf.c \
  33   34          fmd_builtin.c \
↓ open down ↓ 82 lines elided ↑ open up ↑
 116  117  CPPFLAGS += -I. -I../common
 117  118  CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
 118  119  CFLAGS += $(CTF_FLAGS) $(CCVERBOSE) $(XSTRCONST)
 119  120  LINTFLAGS += -mu
 120  121  CERRWARN += -_gcc=-Wno-switch
 121  122  CERRWARN += -_gcc=-Wno-parentheses
 122  123  CERRWARN += -_gcc=-Wno-uninitialized
 123  124  CERRWARN += -_gcc=-Wno-unused-variable
 124  125  CERRWARN += -_gcc=-Wno-clobbered
 125  126  
      127 +# not linted
      128 +SMATCH=off
      129 +
 126  130  $(PROG) := LDFLAGS += -R/usr/lib/fm
 127  131  $(PROG) := LDLIBS += -L$(ROOTLIB)/fm -ltopo -ldiagcode -lsysevent -lsmbios \
 128  132                  -luuid -lnvpair -lexacct -lnsl -lumem -ldevinfo -lfmd_msg
 129  133  
 130  134  $(DMOD) := CFLAGS += $(CC_PICFLAGS) -G $(XREGSFLAG)
 131  135  $(DMOD) := LDFLAGS += $(ZTEXT) $(ZDEFS) $(MAPFILE-DMOD:%=-M%)
 132  136  
 133  137  #
 134  138  # rpcgen(1) produces code that wants to be in the foreground if we're compiled
 135  139  # DEBUG, which isn't appropriate for our daemon.  Forcibly undefine this code.
↓ open down ↓ 121 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX