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


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #

  25 
  26 SHELL=/usr/bin/ksh93
  27 
  28 LIBRARY=        libast.a
  29 VERS=           .1
  30 
  31 # platform-independent sources are in common/
  32 OBJECTS += \
  33         common/cdt/dtclose.o \
  34         common/cdt/dtdisc.o \
  35         common/cdt/dtextract.o \
  36         common/cdt/dtflatten.o \
  37         common/cdt/dthash.o \
  38         common/cdt/dtlist.o \
  39         common/cdt/dtmethod.o \
  40         common/cdt/dtnew.o \
  41         common/cdt/dtopen.o \
  42         common/cdt/dtrenew.o \
  43         common/cdt/dtrestore.o \
  44         common/cdt/dtsize.o \


 721 CFLAGS += \
 722         $(ASTCFLAGS)
 723 CFLAGS64 += \
 724         $(ASTCFLAGS64)
 725 
 726 CERRWARN += -_gcc=-Wno-parentheses
 727 CERRWARN += -_gcc=-Wno-uninitialized
 728 CERRWARN += -_gcc=-Wno-char-subscripts
 729 CERRWARN += -_gcc=-Wno-clobbered
 730 CERRWARN += -_gcc=-Wno-unused-variable
 731 CERRWARN += -_gcc=-Wno-unused-but-set-variable
 732 CERRWARN += -_gcc=-Wno-unused-but-set-parameter
 733 CERRWARN += -_gcc=-Wno-unused-value
 734 CERRWARN += -_gcc=-Wno-unused-function
 735 CERRWARN += -_gcc=-Wno-unused-label
 736 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 737 CERRWARN += -_gcc=-Wno-empty-body
 738 CERRWARN += -_gcc=-Wno-type-limits
 739 CERRWARN += -_gcc=-Wno-address
 740 


 741 pics/$(MACH)/src/lib/libast/conftab.o \
 742 pics/$(MACH64)/src/lib/libast/conftab.o := CERRWARN += -erroff=E_INIT_DOES_NOT_FIT
 743 pics/common/comp/setlocale.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 744 pics/common/comp/setlocale.o            := CERRWARN += -erroff=E_INIT_DOES_NOT_FIT
 745 pics/common/comp/setlocale.o            := CERRWARN += -erroff=E_INIT_SIGN_EXTEND
 746 pics/common/hash/hashlook.o             := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 747 pics/common/hash/memhash.o              := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 748 pics/common/hash/memsum.o               := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 749 pics/common/hash/strhash.o              := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 750 pics/common/hash/strsum.o               := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 751 pics/common/misc/recstr.o               := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 752 pics/common/misc/translate.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 753 pics/common/path/pathkey.o              := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 754 pics/common/port/astconf.o              := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
 755 pics/common/stdio/fflush.o              := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 756 pics/common/stdio/getline.o             := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 757 pics/common/sfio/sfmove.o               := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 758 pics/common/sfio/sfrd.o                 := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 759 pics/common/sfio/sfvscanf.o             := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 760 pics/common/tm/tmxduration.o            := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED


   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 SHELL=/usr/bin/ksh93
  28 
  29 LIBRARY=        libast.a
  30 VERS=           .1
  31 
  32 # platform-independent sources are in common/
  33 OBJECTS += \
  34         common/cdt/dtclose.o \
  35         common/cdt/dtdisc.o \
  36         common/cdt/dtextract.o \
  37         common/cdt/dtflatten.o \
  38         common/cdt/dthash.o \
  39         common/cdt/dtlist.o \
  40         common/cdt/dtmethod.o \
  41         common/cdt/dtnew.o \
  42         common/cdt/dtopen.o \
  43         common/cdt/dtrenew.o \
  44         common/cdt/dtrestore.o \
  45         common/cdt/dtsize.o \


 722 CFLAGS += \
 723         $(ASTCFLAGS)
 724 CFLAGS64 += \
 725         $(ASTCFLAGS64)
 726 
 727 CERRWARN += -_gcc=-Wno-parentheses
 728 CERRWARN += -_gcc=-Wno-uninitialized
 729 CERRWARN += -_gcc=-Wno-char-subscripts
 730 CERRWARN += -_gcc=-Wno-clobbered
 731 CERRWARN += -_gcc=-Wno-unused-variable
 732 CERRWARN += -_gcc=-Wno-unused-but-set-variable
 733 CERRWARN += -_gcc=-Wno-unused-but-set-parameter
 734 CERRWARN += -_gcc=-Wno-unused-value
 735 CERRWARN += -_gcc=-Wno-unused-function
 736 CERRWARN += -_gcc=-Wno-unused-label
 737 CERRWARN += -_gcc=-Wno-implicit-function-declaration
 738 CERRWARN += -_gcc=-Wno-empty-body
 739 CERRWARN += -_gcc=-Wno-type-limits
 740 CERRWARN += -_gcc=-Wno-address
 741 
 742 SMATCH=off
 743 
 744 pics/$(MACH)/src/lib/libast/conftab.o \
 745 pics/$(MACH64)/src/lib/libast/conftab.o := CERRWARN += -erroff=E_INIT_DOES_NOT_FIT
 746 pics/common/comp/setlocale.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 747 pics/common/comp/setlocale.o            := CERRWARN += -erroff=E_INIT_DOES_NOT_FIT
 748 pics/common/comp/setlocale.o            := CERRWARN += -erroff=E_INIT_SIGN_EXTEND
 749 pics/common/hash/hashlook.o             := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 750 pics/common/hash/memhash.o              := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 751 pics/common/hash/memsum.o               := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 752 pics/common/hash/strhash.o              := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 753 pics/common/hash/strsum.o               := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 754 pics/common/misc/recstr.o               := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 755 pics/common/misc/translate.o            := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
 756 pics/common/path/pathkey.o              := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
 757 pics/common/port/astconf.o              := CERRWARN += -erroff=E_CONST_OBJ_SHOULD_HAVE_INITIZR
 758 pics/common/stdio/fflush.o              := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 759 pics/common/stdio/getline.o             := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 760 pics/common/sfio/sfmove.o               := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 761 pics/common/sfio/sfrd.o                 := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
 762 pics/common/sfio/sfvscanf.o             := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
 763 pics/common/tm/tmxduration.o            := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED