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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.sbin/in.routed/Makefile
   1    1  #
   2    2  #
   3    3  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   4    4  # Use is subject to license terms.
   5    5  #
        6 +# Copyright (c) 2018, Joyent, Inc.
   6    7  
   7    8  ROUTEDPROG=     in.routed
   8    9  ROUTEDOBJS=     common.o if.o input.o main.o output.o parms.o radix.o \
   9   10                  rdisc.o table.o trace.o
  10   11  ROUTEDSRCS=     $(ROUTEDOBJS:.o=.c)
  11   12  RTQUERYPROG=    rtquery
  12   13  RTQUERYOBJS=    common.o rtquery.o
  13   14  RTQUERYSRCS=    $(RTQUERYOBJS:.o=.c)
  14   15  POFILEOBJS=     $(ROUTEDOBJS) $(RTQUERYOBJS)    
  15   16  
↓ open down ↓ 16 lines elided ↑ open up ↑
  32   33  
  33   34  # Turning on __EXTENSIONS__ breaks lint, and we need __EXTENSIONS__.
  34   35  # This is really a lint problem, so around the breakage.
  35   36  LINTFLAGS += -erroff=E_FUNC_DECL_VAR_ARG2 -erroff=E_INCONS_VAL_TYPE_DECL2 \
  36   37               -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_ARG_USED2
  37   38  
  38   39  CPPFLAGS +=     $(_D_XOPEN_EXTN)
  39   40  CFLAGS +=       $(CCVERBOSE)
  40   41  CERRWARN +=     -_gcc=-Wno-parentheses
  41   42  CERRWARN +=     -_gcc=-Wno-uninitialized
       43 +# not linted
       44 +SMATCH=off
       45 +
  42   46  LDLIBS +=       -lxnet -lmd -lsocket
  43   47  CLEAN_FILES +=  $(ROUTEDOBJS) $(RTQUERYOBJS)
  44   48  CLOBBERFILES += $(ROUTEDPROG) $(RTQUERYPROG)
  45   49  #
  46   50  # Message catalog
  47   51  #
  48   52  POFILE=         in.routed.po
  49   53  POFILES=  $(POFILEOBJS:.o=.po)
  50   54  #
  51   55  $(ROUTEDPROG):= LDLIBS += -lkstat
↓ open down ↓ 44 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX