Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/Makefile
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  # Copyright (c) 2018, Joyent, Inc.
  27   27  
  28   28  PROG= nwamadm
  29   29  
  30   30  include ../../../Makefile.cmd
  31   31  
  32   32  XGETFLAGS +=    -a -x $(PROG).xcl
  33   33  LDLIBS +=       -lofmt -linetutil -lnsl -lnwam -lumem -lscf
  34   34  
  35   35  CERRWARN += -_gcc=-Wno-switch
  36      -CERRWARN += -_gcc=-Wno-uninitialized
       36 +CERRWARN += $(CNOWARN_UNINIT)
  37   37  
  38   38  # not linted
  39   39  SMATCH=off
  40   40  
  41   41  .KEEP_STATE:
  42   42  
  43   43  all: $(PROG)
  44   44  
  45   45  install: all $(ROOTUSRSBINPROG)
  46   46  
  47   47  check:  $(PROG).c
  48   48          $(CSTYLE) -pP $(PROG).c
  49   49  
  50   50  clean:
  51   51  
  52   52  lint:   lint_PROG
  53   53  
  54   54  include ../../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX