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`


  31 SVCMETHOD =     svc-rmvolmgr
  32 
  33 include ../Makefile.cmd
  34 include ../hal/Makefile.hal
  35 
  36 POFILE=rmvolmgr_all.po
  37 POFILES=$(OBJS:%.o=%.po)
  38 
  39 LDLIBS +=       -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lhal -lhal-storage -lcontract -lscf
  40 
  41 CPPFLAGS +=     $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
  42 CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  43 C99MODE =       $(C99_ENABLE)
  44 
  45 CERRWARN +=     -_gcc=-Wno-switch
  46 CERRWARN +=     -_gcc=-Wno-uninitialized
  47 CERRWARN +=     -_gcc=-Wno-unused-variable
  48 CERRWARN +=     -_gcc=-Wno-parentheses
  49 CERRWARN +=     -_gcc=-Wno-unused-function
  50 




  51 ROOTCMDDIR =            $(ROOTLIB)
  52 ROOTMANIFESTDIR =       $(ROOTSVCSYSTEMFILESYSTEM)
  53 $(ROOTMANIFEST) :=      FILEMODE = 444
  54 $(ROOTLIBSVCMETHOD)/svc-rmvolmgr:= FILEMODE = 555
  55 
  56 .KEEP_STATE:
  57 
  58 all: $(PROG)
  59 
  60 $(PROG): $(OBJS)
  61         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  62         $(POST_PROCESS)
  63 
  64 install: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
  65 
  66 clean:
  67         $(RM) $(OBJS)
  68 
  69 check: $(CHKMANIFEST)
  70 


  31 SVCMETHOD =     svc-rmvolmgr
  32 
  33 include ../Makefile.cmd
  34 include ../hal/Makefile.hal
  35 
  36 POFILE=rmvolmgr_all.po
  37 POFILES=$(OBJS:%.o=%.po)
  38 
  39 LDLIBS +=       -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lhal -lhal-storage -lcontract -lscf
  40 
  41 CPPFLAGS +=     $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
  42 CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  43 C99MODE =       $(C99_ENABLE)
  44 
  45 CERRWARN +=     -_gcc=-Wno-switch
  46 CERRWARN +=     -_gcc=-Wno-uninitialized
  47 CERRWARN +=     -_gcc=-Wno-unused-variable
  48 CERRWARN +=     -_gcc=-Wno-parentheses
  49 CERRWARN +=     -_gcc=-Wno-unused-function
  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 
  55 ROOTCMDDIR =            $(ROOTLIB)
  56 ROOTMANIFESTDIR =       $(ROOTSVCSYSTEMFILESYSTEM)
  57 $(ROOTMANIFEST) :=      FILEMODE = 444
  58 $(ROOTLIBSVCMETHOD)/svc-rmvolmgr:= FILEMODE = 555
  59 
  60 .KEEP_STATE:
  61 
  62 all: $(PROG)
  63 
  64 $(PROG): $(OBJS)
  65         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  66         $(POST_PROCESS)
  67 
  68 install: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
  69 
  70 clean:
  71         $(RM) $(OBJS)
  72 
  73 check: $(CHKMANIFEST)
  74