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/rmmount/Makefile
          +++ new/usr/src/cmd/rmmount/Makefile
↓ open down ↓ 39 lines elided ↑ open up ↑
  40   40  CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  41   41  CPPFLAGS +=     -I$(SRC)/cmd/rmvolmgr
  42   42  C99MODE =       $(C99_ENABLE)
  43   43  
  44   44  CERRWARN += -_gcc=-Wno-switch
  45   45  CERRWARN += -_gcc=-Wno-unused-variable
  46   46  CERRWARN += -_gcc=-Wno-parentheses
  47   47  CERRWARN += -_gcc=-Wno-unused-function
  48   48  CERRWARN += -_gcc=-Wno-uninitialized
  49   49  
       50 +# This is, unfortunately, from the glib headers.  Studio provides no
       51 +# equivalent to -isystem
       52 +CERRWARN +=     -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
       53 +
  50   54  .KEEP_STATE:
  51   55  
  52   56  all: $(PROG)
  53   57  
  54   58  $(PROG): $(OBJS)
  55   59          $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  56   60          $(POST_PROCESS)
  57   61  
  58   62  install: all $(ROOTPROG)
  59   63          -$(RM) $(ROOT)/usr/bin/rmumount
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX