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/rmvolmgr/Makefile
          +++ new/usr/src/cmd/rmvolmgr/Makefile
↓ open down ↓ 40 lines elided ↑ open up ↑
  41   41  CPPFLAGS +=     $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
  42   42  CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  43   43  C99MODE =       $(C99_ENABLE)
  44   44  
  45   45  CERRWARN +=     -_gcc=-Wno-switch
  46   46  CERRWARN +=     -_gcc=-Wno-uninitialized
  47   47  CERRWARN +=     -_gcc=-Wno-unused-variable
  48   48  CERRWARN +=     -_gcc=-Wno-parentheses
  49   49  CERRWARN +=     -_gcc=-Wno-unused-function
  50   50  
       51 +# This is, unfortunately, from the glib headers.  Studio provides no
       52 +# equivalent to -isystem
       53 +CERRWARN +=     -_cc=-erroff=E_INTEGER_OVERFLOW_DETECTED
       54 +
  51   55  ROOTCMDDIR =            $(ROOTLIB)
  52   56  ROOTMANIFESTDIR =       $(ROOTSVCSYSTEMFILESYSTEM)
  53   57  $(ROOTMANIFEST) :=      FILEMODE = 444
  54   58  $(ROOTLIBSVCMETHOD)/svc-rmvolmgr:= FILEMODE = 555
  55   59  
  56   60  .KEEP_STATE:
  57   61  
  58   62  all: $(PROG)
  59   63  
  60   64  $(PROG): $(OBJS)
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX