Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized


  43 include $(UTSBASE)/intel/Makefile.intel
  44 
  45 #
  46 #       Define targets
  47 #
  48 ALL_TARGET      = $(BINARY)
  49 LINT_TARGET     = $(MODULE).lint
  50 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  51 
  52 #
  53 #       Overrides.
  54 #
  55 CFLAGS          += $(CCVERBOSE)
  56 LDFLAGS         += -dy
  57 INC_PATH        += -I$(UTSBASE)/common/io/bpf
  58 
  59 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  60 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  61 
  62 CERRWARN        += -_gcc=-Wno-unused-label
  63 CERRWARN        += -_gcc=-Wno-uninitialized
  64 CERRWARN        += -_gcc=-Wno-type-limits
  65 CERRWARN        += -_gcc=-Wno-switch
  66 CERRWARN        += -_gcc=-Wno-unused-variable
  67 
  68 # needs work
  69 SMOFF += all_func_returns
  70 $(OBJS_DIR)/mac.o := SMOFF += deref_check
  71 $(OBJS_DIR)/mac_util.o := SMOFF += signed
  72 
  73 # false positive
  74 $(OBJS_DIR)/mac_sched.o := SMOFF += assign_vs_compare
  75 #
  76 #       Default build targets.
  77 #
  78 .KEEP_STATE:
  79 
  80 def:            $(DEF_DEPS)
  81 
  82 all:            $(ALL_DEPS)
  83 


  43 include $(UTSBASE)/intel/Makefile.intel
  44 
  45 #
  46 #       Define targets
  47 #
  48 ALL_TARGET      = $(BINARY)
  49 LINT_TARGET     = $(MODULE).lint
  50 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  51 
  52 #
  53 #       Overrides.
  54 #
  55 CFLAGS          += $(CCVERBOSE)
  56 LDFLAGS         += -dy
  57 INC_PATH        += -I$(UTSBASE)/common/io/bpf
  58 
  59 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  60 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  61 
  62 CERRWARN        += -_gcc=-Wno-unused-label
  63 CERRWARN        += $(CNOWARN_UNINIT)
  64 CERRWARN        += -_gcc=-Wno-type-limits
  65 CERRWARN        += -_gcc=-Wno-switch
  66 CERRWARN        += -_gcc=-Wno-unused-variable
  67 
  68 # needs work
  69 SMOFF += all_func_returns
  70 $(OBJS_DIR)/mac.o := SMOFF += deref_check
  71 $(OBJS_DIR)/mac_util.o := SMOFF += signed
  72 
  73 # false positive
  74 $(OBJS_DIR)/mac_sched.o := SMOFF += assign_vs_compare
  75 #
  76 #       Default build targets.
  77 #
  78 .KEEP_STATE:
  79 
  80 def:            $(DEF_DEPS)
  81 
  82 all:            $(ALL_DEPS)
  83