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


  66 #
  67 # lint pass one enforcement
  68 #
  69 CFLAGS += -DSOLARIS
  70 #
  71 # Debug flags
  72 #
  73 # CFLAGS += -DHXGE_DEBUG -DHPI_DEBUG
  74 #
  75 LINTFLAGS += -DSOLARIS
  76 #
  77 # STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
  78 # force us to turn off these lint checks.
  79 #
  80 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  81 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  82 LINTTAGS        += -erroff=E_FALSE_LOGICAL_EXPR
  83 
  84 CERRWARN        += -_gcc=-Wno-unused-label
  85 CERRWARN        += -_gcc=-Wno-switch
  86 CERRWARN        += -_gcc=-Wno-uninitialized
  87 CERRWARN        += -_gcc=-Wno-parentheses
  88 
  89 SMOFF += deref_check,logical_instead_of_bitwise
  90 
  91 #
  92 #       Driver depends on mac & IP
  93 #
  94 LDFLAGS         += -dy -N misc/mac -N drv/ip
  95 
  96 #
  97 #       Default build targets.
  98 #
  99 .KEEP_STATE:
 100 
 101 def:            $(DEF_DEPS)
 102 
 103 all:            $(ALL_DEPS)
 104 
 105 clean:          $(CLEAN_DEPS)
 106 


  66 #
  67 # lint pass one enforcement
  68 #
  69 CFLAGS += -DSOLARIS
  70 #
  71 # Debug flags
  72 #
  73 # CFLAGS += -DHXGE_DEBUG -DHPI_DEBUG
  74 #
  75 LINTFLAGS += -DSOLARIS
  76 #
  77 # STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
  78 # force us to turn off these lint checks.
  79 #
  80 LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
  81 LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
  82 LINTTAGS        += -erroff=E_FALSE_LOGICAL_EXPR
  83 
  84 CERRWARN        += -_gcc=-Wno-unused-label
  85 CERRWARN        += -_gcc=-Wno-switch
  86 CERRWARN        += $(CNOWARN_UNINIT)
  87 CERRWARN        += -_gcc=-Wno-parentheses
  88 
  89 SMOFF += deref_check,logical_instead_of_bitwise
  90 
  91 #
  92 #       Driver depends on mac & IP
  93 #
  94 LDFLAGS         += -dy -N misc/mac -N drv/ip
  95 
  96 #
  97 #       Default build targets.
  98 #
  99 .KEEP_STATE:
 100 
 101 def:            $(DEF_DEPS)
 102 
 103 all:            $(ALL_DEPS)
 104 
 105 clean:          $(CLEAN_DEPS)
 106