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

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libshare/Makefile.com
          +++ new/usr/src/lib/libshare/Makefile.com
↓ open down ↓ 38 lines elided ↑ open up ↑
  39   39  lintcheck := SRCS = $(LIBSRCS)
  40   40  
  41   41  LIBS =          $(DYNLIB) $(LINTLIB)
  42   42  LDLIBS +=       -lc -lnsl -lscf -lzfs -luuid -lxml2 -lnvpair
  43   43  $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  44   44  
  45   45  #add nfs/lib directory as part of the include path
  46   46  CFLAGS +=       $(CCVERBOSE)
  47   47  CSTD += $(CSTD_GNU99)
  48   48  CERRWARN +=     -_gcc=-Wno-parentheses
  49      -CERRWARN +=     -_gcc=-Wno-uninitialized
       49 +CERRWARN +=     $(CNOWARN_UNINIT)
  50   50  CERRWARN +=     -_gcc=-Wno-switch
  51   51  
  52   52  # not linted
  53   53  SMATCH=off
  54   54  
  55   55  CPPFLAGS +=     -D_REENTRANT -I$(NFSLIB_DIR) \
  56   56                  -I$(ADJUNCT_PROTO)/usr/include/libxml2
  57   57  
  58   58  .KEEP_STATE:
  59   59  
  60   60  all: $(LIBS)
  61   61  
  62   62  lint: lintcheck
  63   63  
  64   64  pics/%.o:       $(NFSLIB_DIR)/%.c
  65   65          $(COMPILE.c) -o $@ $<
  66   66          $(POST_PROCESS_O)
  67   67  
  68   68  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX