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


  51 LINT_TARGET     = $(MODULE).lint
  52 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  53 
  54 #
  55 # Overrides
  56 #
  57 CFLAGS          += $(CCVERBOSE)
  58 LDFLAGS         += -dy -N misc/dls -N misc/mac
  59 INC_PATH        += -I$(UTSBASE)/common/io/bpf
  60 
  61 #
  62 # For now, disable these lint checks; maintainers should endeavor
  63 # to investigate and remove these for maximum lint coverage.
  64 # Please do not carry these forward to new Makefiles.
  65 #
  66 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  67 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  68 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  69 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  70 
  71 CERRWARN        += -_gcc=-Wno-uninitialized
  72 CERRWARN        += -_gcc=-Wno-type-limits
  73 CERRWARN        += -_gcc=-Wno-parentheses
  74 
  75 # needs work
  76 $(OBJS_DIR)/dld_proto.o := SMOFF += signed
  77 $(OBJS_DIR)/dld_drv.o := SMOFF += cast_assign
  78 
  79 #
  80 #       Default build targets.
  81 #
  82 .KEEP_STATE:
  83 
  84 def:            $(DEF_DEPS)
  85 
  86 all:            $(ALL_DEPS)
  87 
  88 clean:          $(CLEAN_DEPS)
  89 
  90 clobber:        $(CLOBBER_DEPS)
  91 


  51 LINT_TARGET     = $(MODULE).lint
  52 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
  53 
  54 #
  55 # Overrides
  56 #
  57 CFLAGS          += $(CCVERBOSE)
  58 LDFLAGS         += -dy -N misc/dls -N misc/mac
  59 INC_PATH        += -I$(UTSBASE)/common/io/bpf
  60 
  61 #
  62 # For now, disable these lint checks; maintainers should endeavor
  63 # to investigate and remove these for maximum lint coverage.
  64 # Please do not carry these forward to new Makefiles.
  65 #
  66 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  67 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  68 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  69 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  70 
  71 CERRWARN        += $(CNOWARN_UNINIT)
  72 CERRWARN        += -_gcc=-Wno-type-limits
  73 CERRWARN        += -_gcc=-Wno-parentheses
  74 
  75 # needs work
  76 $(OBJS_DIR)/dld_proto.o := SMOFF += signed
  77 $(OBJS_DIR)/dld_drv.o := SMOFF += cast_assign
  78 
  79 #
  80 #       Default build targets.
  81 #
  82 .KEEP_STATE:
  83 
  84 def:            $(DEF_DEPS)
  85 
  86 all:            $(ALL_DEPS)
  87 
  88 clean:          $(CLEAN_DEPS)
  89 
  90 clobber:        $(CLOBBER_DEPS)
  91