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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/Makefile.mdb
          +++ new/usr/src/cmd/mdb/Makefile.mdb
↓ open down ↓ 101 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 +
 112  114  #
 113  115  # -erroff=E_INCONS_ARG_DECL2 works around a problem where lint gets confused
 114  116  # about how struct mdb_tgt_gregset is used in mdb_tgt_stack_f() and
 115  117  # mdb_tgt_stack_iter_f(). Will be resolved as part of fix for CR 6749868.
 116  118  #
 117  119  LINTFLAGS += -n -errtags=yes -erroff=E_INCONS_ARG_DECL2
 118  120  LINTFILES = $(SRCS:%.c=%.ln)
 119  121  
 120  122  PROG = mdb
 121  123  OBJS = $(SRCS:%.c=%.o) mdb_lex.o mdb_grammar.o
↓ open down ↓ 89 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX