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`


  30 LOCAL_SRCS =    $(LOCAL_OBJS:%.o=%.c)
  31 RMVOLGMR_SRCS = $(RMVOLMGR_OBJS:%.o=$(SRC)/cmd/rmvolmgr/%.c)
  32 SRCS =          $(LOCAL_SRCS) $(RMVOLMGR_SRCS)
  33 
  34 include $(SRC)/cmd/Makefile.cmd
  35 include $(SRC)/cmd/hal/Makefile.hal
  36 
  37 LDLIBS +=       -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lhal -lhal-storage -lcontract
  38 
  39 CPPFLAGS +=     $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
  40 CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  41 CPPFLAGS +=     -I$(SRC)/cmd/rmvolmgr
  42 C99MODE =       $(C99_ENABLE)
  43 
  44 CERRWARN +=     -_gcc=-Wno-switch
  45 CERRWARN +=     -_gcc=-Wno-unused-variable
  46 CERRWARN +=     -_gcc=-Wno-parentheses
  47 CERRWARN +=     -_gcc=-Wno-uninitialized
  48 CERRWARN +=     -_gcc=-Wno-unused-function
  49 




  50 .KEEP_STATE:
  51 
  52 all: $(PROG)
  53 
  54 $(PROG): $(OBJS)
  55         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  56         $(POST_PROCESS)
  57 
  58 install: all $(ROOTPROG)
  59 
  60 rmm_common.o: $(SRC)/cmd/rmvolmgr/rmm_common.c $(SRC)/cmd/rmvolmgr/rmm_common.h
  61         $(COMPILE.c) -o $@ $(SRC)/cmd/rmvolmgr/rmm_common.c
  62         $(POST_PROCESS_O)
  63 
  64 vold.o: $(SRC)/cmd/rmvolmgr/vold.c $(SRC)/cmd/rmvolmgr/vold.h
  65         $(COMPILE.c) -o $@ $(SRC)/cmd/rmvolmgr/vold.c
  66         $(POST_PROCESS_O)
  67 
  68 clean:
  69         $(RM) $(OBJS)


  30 LOCAL_SRCS =    $(LOCAL_OBJS:%.o=%.c)
  31 RMVOLGMR_SRCS = $(RMVOLMGR_OBJS:%.o=$(SRC)/cmd/rmvolmgr/%.c)
  32 SRCS =          $(LOCAL_SRCS) $(RMVOLMGR_SRCS)
  33 
  34 include $(SRC)/cmd/Makefile.cmd
  35 include $(SRC)/cmd/hal/Makefile.hal
  36 
  37 LDLIBS +=       -ldbus-1 -ldbus-glib-1 -lglib-2.0 -lhal -lhal-storage -lcontract
  38 
  39 CPPFLAGS +=     $(HAL_DBUS_CPPFLAGS) $(HAL_GLIB_CPPFLAGS)
  40 CPPFLAGS +=     -I$(ROOT)/usr/include/hal
  41 CPPFLAGS +=     -I$(SRC)/cmd/rmvolmgr
  42 C99MODE =       $(C99_ENABLE)
  43 
  44 CERRWARN +=     -_gcc=-Wno-switch
  45 CERRWARN +=     -_gcc=-Wno-unused-variable
  46 CERRWARN +=     -_gcc=-Wno-parentheses
  47 CERRWARN +=     -_gcc=-Wno-uninitialized
  48 CERRWARN +=     -_gcc=-Wno-unused-function
  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 
  54 .KEEP_STATE:
  55 
  56 all: $(PROG)
  57 
  58 $(PROG): $(OBJS)
  59         $(LINK.c) -o $(PROG) $(OBJS) $(LDLIBS)
  60         $(POST_PROCESS)
  61 
  62 install: all $(ROOTPROG)
  63 
  64 rmm_common.o: $(SRC)/cmd/rmvolmgr/rmm_common.c $(SRC)/cmd/rmvolmgr/rmm_common.h
  65         $(COMPILE.c) -o $@ $(SRC)/cmd/rmvolmgr/rmm_common.c
  66         $(POST_PROCESS_O)
  67 
  68 vold.o: $(SRC)/cmd/rmvolmgr/vold.c $(SRC)/cmd/rmvolmgr/vold.h
  69         $(COMPILE.c) -o $@ $(SRC)/cmd/rmvolmgr/vold.c
  70         $(POST_PROCESS_O)
  71 
  72 clean:
  73         $(RM) $(OBJS)