Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/fs.d/ufs/mkfs/Makefile
          +++ new/usr/src/cmd/fs.d/ufs/mkfs/Makefile
↓ 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 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23  # Use is subject to license terms.
  24   24  #
       25 +# Copyright (c) 2018, Joyent, Inc.
       26 +#
  25   27  
  26   28  FSTYPE=         ufs
  27   29  LIBPROG=        mkfs
  28   30  ATTMK=          $(LIBPROG)
  29   31  
  30   32  include         ../../Makefile.fstype
  31   33  include         ../Makefile.roll
  32   34  
       35 +CPPFLAGS +=     -I../../
       36 +
  33   37  OBJS=           $(LIBPROG).o $(ROLLOBJS) $(FSLIB)
  34   38  SRCS=           $(LIBPROG).c $(ROLLSRCS) $(FSLIBSRC)
  35   39  MKFSOBJS=       mkfs.o
  36   40  
  37   41  CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  38   42  CERRWARN +=     -_gcc=-Wno-unused-variable
  39   43  CERRWARN +=     -_gcc=-Wno-empty-body
  40   44  CERRWARN +=     -_gcc=-Wno-uninitialized
  41   45  
       46 +# can't hack main() !
       47 +SMATCH =        off
       48 +
  42   49  # for messaging catalog
  43   50  #
  44   51  POFILE= mkfs.po
  45   52  
  46   53  catalog:        $(POFILE)
  47   54  
  48   55  $(POFILE):      $(SRCS)
  49   56          $(RM) $@
  50   57          $(COMPILE.cpp) $(SRCS)   > $(POFILE).i
  51   58          $(XGETTEXT) $(XGETFLAGS)        $(POFILE).i
↓ open down ↓ 15 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX