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


  52 ALL_TARGET      = $(BINARY)
  53 LINT_TARGET     = $(MODULE).lint
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55 
  56 #
  57 # lint pass one enforcement
  58 #
  59 CFLAGS          += $(CCVERBOSE)
  60 
  61 #
  62 # Turn on doubleword alignment for 64 bit registers
  63 #
  64 CFLAGS          += -dalign
  65 
  66 #
  67 # Driver depends on MAC & IP
  68 #
  69 LDFLAGS         += -dy -N misc/mac -N drv/ip
  70 
  71 CERRWARN        += -_gcc=-Wno-switch
  72 CERRWARN        += -_gcc=-Wno-uninitialized
  73 
  74 #
  75 # For now, disable these lint checks; maintainers should endeavor
  76 # to investigate and remove these for maximum lint coverage.
  77 # Please do not carry these forward to new Makefiles.
  78 #
  79 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  80 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  81 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  82 
  83 #
  84 #       Default build targets.
  85 #
  86 .KEEP_STATE:
  87 
  88 def:            $(DEF_DEPS)
  89 
  90 all:            $(ALL_DEPS)
  91 
  92 clean:          $(CLEAN_DEPS)


  52 ALL_TARGET      = $(BINARY)
  53 LINT_TARGET     = $(MODULE).lint
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55 
  56 #
  57 # lint pass one enforcement
  58 #
  59 CFLAGS          += $(CCVERBOSE)
  60 
  61 #
  62 # Turn on doubleword alignment for 64 bit registers
  63 #
  64 CFLAGS          += -dalign
  65 
  66 #
  67 # Driver depends on MAC & IP
  68 #
  69 LDFLAGS         += -dy -N misc/mac -N drv/ip
  70 
  71 CERRWARN        += -_gcc=-Wno-switch
  72 CERRWARN        += $(CNOWARN_UNINIT)
  73 
  74 #
  75 # For now, disable these lint checks; maintainers should endeavor
  76 # to investigate and remove these for maximum lint coverage.
  77 # Please do not carry these forward to new Makefiles.
  78 #
  79 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  80 LINTTAGS        += -erroff=E_ASSIGN_NARROW_CONV
  81 LINTTAGS        += -erroff=E_SUSPICIOUS_COMPARISON
  82 
  83 #
  84 #       Default build targets.
  85 #
  86 .KEEP_STATE:
  87 
  88 def:            $(DEF_DEPS)
  89 
  90 all:            $(ALL_DEPS)
  91 
  92 clean:          $(CLEAN_DEPS)