Print this page
10079 smatch Makefile changes for usr/src/lib

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/fm/libfmd_msg/Makefile.com
          +++ new/usr/src/lib/fm/libfmd_msg/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  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
  25   26  
  26   27  LIBRARY = libfmd_msg.a
  27   28  VERS = .1
  28   29  
  29   30  LIBSRCS = fmd_msg.c
  30   31  OBJECTS = $(LIBSRCS:%.c=%.o)
  31   32  
  32   33  include ../../../Makefile.lib
  33   34  include ../../Makefile.lib
  34   35  
  35   36  SRCS = $(LIBSRCS:%.c=../common/%.c)
  36   37  LIBS = $(DYNLIB) $(LINTLIB)
  37   38  
  38   39  SRCDIR =        ../common
  39   40  
  40   41  CPPFLAGS += -I../common -I.
  41   42  CFLAGS += $(CCVERBOSE) $(C_BIGPICFLAGS)
  42   43  CFLAGS64 += $(CCVERBOSE) $(C_BIGPICFLAGS)
  43   44  CERRWARN += -_gcc=-Wno-switch
  44   45  CERRWARN += -_gcc=-Wno-uninitialized
       46 +
       47 +SMOFF += all_func_returns
       48 +
  45   49  LDLIBS += -lnvpair -lc
  46   50  
  47   51  LINTFLAGS = -msux
  48   52  LINTFLAGS64 = -msux -m64
  49   53  
  50   54  CLOBBERFILES += fmd_msg_test fmd_msg_test.core fmd_msg_test.out
  51   55  
  52   56  $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
  53   57  $(LINTLIB) := LINTFLAGS = -nsvx
  54   58  $(LINTLIB) := LINTFLAGS64 = -nsvx -m64
↓ open down ↓ 44 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX