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

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/addbadsec/Makefile
          +++ new/usr/src/cmd/addbadsec/Makefile
↓ open down ↓ 25 lines elided ↑ open up ↑
  26   26  # Copyright (c) 2018, Joyent, Inc.
  27   27  
  28   28  PROG=           addbadsec
  29   29  OBJECTS=        addbadsec.o ix_altsctr.o
  30   30  SRCS=           $(OBJECTS:.o=.c)
  31   31  
  32   32  include ../Makefile.cmd
  33   33  
  34   34  CPPFLAGS += -D_EXTVTOC
  35   35  
  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  $(PROG):        $(OBJECTS)
  46   46          $(CC) -o $@ $(OBJECTS) $(LDFLAGS) $(LDLIBS)
  47   47          $(POST_PROCESS)
  48   48  
  49   49  install: all $(ROOTPROG)
  50   50  
  51   51  clean:
  52   52          $(RM) $(OBJECTS)
  53   53  
  54   54  lint:   lint_SRCS
  55   55  
  56   56  include ../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX