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.lib/in.ndpd/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/Makefile
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51  
  52   52  # This shouldn't be necessary, but linking with libxnet requires it.
  53   53  LINTFLAGS +=    -erroff=E_INCONS_ARG_DECL2 -erroff=E_INCONS_VAL_TYPE_DECL2
  54   54  
  55   55  # This is needed to avoid littering the code with useless LINTED statements
  56   56  # for each place where pointers are casted.  It's not perfect, but being
  57   57  # perfect would require a bigger rewrite.
  58   58  LINTFLAGS +=    -erroff=E_BAD_PTR_CAST_ALIGN
  59   59  
  60   60  CERRWARN += -_gcc=-Wno-switch
  61      -CERRWARN += -_gcc=-Wno-uninitialized
       61 +CERRWARN += $(CNOWARN_UNINIT)
  62   62  
  63   63  # not linted
  64   64  SMATCH=off
  65   65  
  66   66  CTFCONVERT_HOOK = && $(CTFCONVERT_O)
  67   67  CTFMERGE_HOOK = && $(CTFMERGE) -L VERSION -o $@ $(OBJS)
  68   68  $(OBJS) := CFLAGS += $(CTF_FLAGS)
  69   69  
  70   70  .KEEP_STATE:
  71   71  
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX