Print this page
10921 mdb_nicenum() needs smatch fix

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/Makefile.mdb
          +++ new/usr/src/cmd/mdb/Makefile.mdb
↓ open down ↓ 18 lines elided ↑ open up ↑
  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   25  
  26   26  #
  27   27  # Copyright 2011 Nexenta Systems, Inc.  All rights reserved.
  28   28  # Copyright (c) 2012 by Delphix. All rights reserved.
  29      -# Copyright (c) 2012 Joyent, Inc. All rights reserved.
       29 +# Copyright 2019 Joyent, Inc.
  30   30  # Copyright 2018 Jason King
  31   31  #
  32   32  
  33   33  .KEEP_STATE:
  34   34  .SUFFIXES:
  35   35  
  36   36  SRCS += \
  37   37          ffs.c \
  38   38          mdb.c \
  39   39          mdb_addrvec.c \
↓ open down ↓ 62 lines elided ↑ open up ↑
 102  102  LDLIBS += -lcurses -lkvm -lproc -lrtld_db -lctf -lumem -ldisasm -lscf
 103  103  LDLIBS += -ldemangle-sys
 104  104  
 105  105  CERRWARN += -_gcc=-Wno-uninitialized
 106  106  CERRWARN += -_gcc=-Wno-char-subscripts
 107  107  CERRWARN += -_gcc=-Wno-clobbered
 108  108  CERRWARN += -_gcc=-Wno-parentheses
 109  109  CERRWARN += -_gcc=-Wno-unused-label
 110  110  CERRWARN += -_gcc=-Wno-unused-variable
 111  111  
 112      -SMOFF += all_func_returns
 113      -
 114  112  #
 115  113  # -erroff=E_INCONS_ARG_DECL2 works around a problem where lint gets confused
 116  114  # about how struct mdb_tgt_gregset is used in mdb_tgt_stack_f() and
 117  115  # mdb_tgt_stack_iter_f(). Will be resolved as part of fix for CR 6749868.
 118  116  #
 119  117  LINTFLAGS += -n -errtags=yes -erroff=E_INCONS_ARG_DECL2
 120  118  LINTFILES = $(SRCS:%.c=%.ln)
 121  119  
 122  120  PROG = mdb
 123  121  OBJS = $(SRCS:%.c=%.o) mdb_lex.o mdb_grammar.o
↓ open down ↓ 89 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX