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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libsum/Makefile.com
          +++ new/usr/src/lib/libsum/Makefile.com
↓ open down ↓ 15 lines elided ↑ open up ↑
  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  #
  23   23  # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24  # Use is subject to license terms.
  25   25  #
       26 +# Copyright (c) 2018, Joyent, Inc.
  26   27  
  27   28  SHELL=/usr/bin/ksh93
  28   29  
  29   30  LIBRARY=        libsum.a
  30   31  VERS=           .1
  31   32  
  32   33  OBJECTS= \
  33   34          sumlib.o
  34   35  
  35   36  include ../../Makefile.astmsg
↓ open down ↓ 33 lines elided ↑ open up ↑
  69   70          -D_PACKAGE_ast \
  70   71          -D_BLD_DLL
  71   72  
  72   73  CFLAGS += \
  73   74          $(ASTCFLAGS)
  74   75  CFLAGS64 += \
  75   76          $(ASTCFLAGS64)
  76   77  
  77   78  CERRWARN        += -_gcc=-Wno-parentheses
  78   79  
       80 +SMOFF += all_func_returns
       81 +
  79   82  # This codepath is performance-critical
  80   83  sparc_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit
  81   84  sparcv9_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit
  82   85  i386_COPTFLAG=-_cc=-xO5 -_cc=-xprefetch=auto,explicit
  83   86  amd64_COPTFLAG=-_cc=-xO5  -_cc=-xprefetch=auto,explicit
  84   87  
  85   88  # Suppress this one warning as the fix would break old gcc, which upstream
  86   89  # still supports. This needs a better fix (later).
  87   90  pics/sumlib.o   := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
  88   91  
↓ open down ↓ 13 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX