Print this page
8478 mac: suggest parentheses around '&&' within '||'
Reviewed by: Ryan Zezeski <rpz@joyent.com>
Reviewed by: Alexander Stetsenko <astetsenko@racktopsystems.com>


  50 #       Define targets
  51 #
  52 ALL_TARGET      = $(BINARY)
  53 LINT_TARGET     = $(MODULE).lint
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55 
  56 #
  57 #       Overrides.
  58 #
  59 CFLAGS                          += $(CCVERBOSE)
  60 $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
  61 $(RELEASE_BUILD)COPTIMIZE       = -xO5
  62 LDFLAGS                         += -dy
  63 INC_PATH                        += -I$(UTSBASE)/common/io/bpf
  64 
  65 LINTTAGS                        += -erroff=E_PTRDIFF_OVERFLOW
  66 LINTTAGS                        += -erroff=E_BAD_PTR_CAST_ALIGN
  67 
  68 CERRWARN                        += -_gcc=-Wno-unused-label
  69 CERRWARN                        += -_gcc=-Wno-uninitialized
  70 CERRWARN                        += -_gcc=-Wno-parentheses
  71 CERRWARN                        += -_gcc=-Wno-type-limits
  72 CERRWARN                        += -_gcc=-Wno-switch
  73 CERRWARN                        += -_gcc=-Wno-unused-variable
  74 
  75 #
  76 #       Default build targets.
  77 #
  78 .KEEP_STATE:
  79 
  80 def:            $(DEF_DEPS)
  81 
  82 all:            $(ALL_DEPS)
  83 
  84 clean:          $(CLEAN_DEPS)
  85 
  86 clobber:        $(CLOBBER_DEPS)
  87 
  88 lint:           $(LINT_DEPS)
  89 
  90 modlintlib:     $(MODLINTLIB_DEPS)


  50 #       Define targets
  51 #
  52 ALL_TARGET      = $(BINARY)
  53 LINT_TARGET     = $(MODULE).lint
  54 INSTALL_TARGET  = $(BINARY) $(ROOTMODULE)
  55 
  56 #
  57 #       Overrides.
  58 #
  59 CFLAGS                          += $(CCVERBOSE)
  60 $(RELEASE_BUILD)CFLAGS          += -xinline=auto -xcrossfile
  61 $(RELEASE_BUILD)COPTIMIZE       = -xO5
  62 LDFLAGS                         += -dy
  63 INC_PATH                        += -I$(UTSBASE)/common/io/bpf
  64 
  65 LINTTAGS                        += -erroff=E_PTRDIFF_OVERFLOW
  66 LINTTAGS                        += -erroff=E_BAD_PTR_CAST_ALIGN
  67 
  68 CERRWARN                        += -_gcc=-Wno-unused-label
  69 CERRWARN                        += -_gcc=-Wno-uninitialized

  70 CERRWARN                        += -_gcc=-Wno-type-limits
  71 CERRWARN                        += -_gcc=-Wno-switch
  72 CERRWARN                        += -_gcc=-Wno-unused-variable
  73 
  74 #
  75 #       Default build targets.
  76 #
  77 .KEEP_STATE:
  78 
  79 def:            $(DEF_DEPS)
  80 
  81 all:            $(ALL_DEPS)
  82 
  83 clean:          $(CLEAN_DEPS)
  84 
  85 clobber:        $(CLOBBER_DEPS)
  86 
  87 lint:           $(LINT_DEPS)
  88 
  89 modlintlib:     $(MODLINTLIB_DEPS)