Print this page
gag Studio warnings that only occur with an adjunct proto
Studio has no equivalent to -isystem, and no option to its -errhdr that
seems equivalent.  As such, we have to gag the warnings that are induced
from the 3rd party headers when those headers are found via the adjunct,
as they will not match Studio's seemingly hard-coded exception on
`/usr/include`

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/latencytop/Makefile.com
          +++ new/usr/src/cmd/latencytop/Makefile.com
↓ open down ↓ 34 lines elided ↑ open up ↑
  35   35  CERRWARN += -_gcc=-Wno-uninitialized
  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  C99MODE = $(C99_ENABLE)
  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 +LINTFLAGS += -erroff=E_STATIC_UNUSED
  45   46  LINTFLAGS64 += -erroff=E_NAME_USED_NOT_DEF2
  46   47  LINTFLAGS64 += -erroff=E_FUNC_RET_ALWAYS_IGNOR2
       48 +LINTFLAGS64 += -erroff=E_STATIC_UNUSED
  47   49  
  48   50  FILEMODE = 0555
  49   51  
  50      -ELFWRAP = elfwrap
  51   52  WRAPOBJ = latencytop_wrap.o
  52   53  
  53   54  CLEANFILES += $(OBJS) $(WRAPOBJ) ./latencytop_d ./latencytop_trans
  54   55  
  55   56  .KEEP_STATE:
  56   57  
  57   58  all: $(PROG)
  58   59  
  59   60  install:        $(SUBDIRS)
  60   61          -$(RM) $(ROOTPROG)
↓ open down ↓ 24 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX