Print this page
NEX-5204 silence lint and studio warnings that only occur with an adjunct proto
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/latencytop/Makefile.com
          +++ new/usr/src/cmd/latencytop/Makefile.com
↓ open down ↓ 35 lines elided ↑ open up ↑
  36   36  
  37   37  CPPFLAGS += -DEMBED_CONFIGS -I$(ADJUNCT_PROTO)/usr/include/glib-2.0 \
  38   38          -I$(ADJUNCT_PROTO)/usr/lib/glib-2.0/include
  39   39  CSTD = $(CSTD_GNU99)
  40   40  LDLIBS += -lcurses -ldtrace
  41   41  all install     := LDLIBS += -lglib-2.0
  42   42  
  43   43  LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  44   44  LINTFLAGS += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  45   45  LINTFLAGS += -erroff=E_FUNC_RET_MAYBE_IGNORED2
       46 +LINTFLAGS += -errhdr=no%$(ADJUNCT_PROTO)/usr/include/glib-2.0
  46   47  LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
  47   48  LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
  48   49  LINTFLAGS64 += -erroff=E_FUNC_RET_MAYBE_IGNORED2
       50 +LINTFLAGS64 += -errhdr=no%$(ADJUNCT_PROTO)/usr/include/glib-2.0
  49   51  
  50   52  FILEMODE = 0555
  51   53  
  52      -ELFWRAP = elfwrap
  53   54  WRAPOBJ = latencytop_wrap.o
  54   55  
  55   56  CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
  56   57  
  57   58  .KEEP_STATE:
  58   59  
  59   60  all: $(PROG)
  60   61  
  61   62  install:        $(SUBDIRS)
  62   63          -$(RM) $(ROOTPROG)
↓ open down ↓ 24 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX