Print this page
4853 illumos-gate is not lint-clean when built with openssl 1.0 (fix openssl 0.9.8 lint)

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libwanboot/Makefile.com
          +++ new/usr/src/lib/libwanboot/Makefile.com
↓ open down ↓ 76 lines elided ↑ open up ↑
  77   77  SRCS =          $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
  78   78  
  79   79  # Must define location of lint library source.
  80   80  SRCDIR =        $(LOC_DIR)
  81   81  $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  82   82  
  83   83  # OpenSSL requires us to turn this off
  84   84  LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
  85   85  LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN
  86   86  
       87 +# OpenSSL 1.0 and 0.9.8 produce different lint warnings
       88 +LINTFLAGS   +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
       89 +LINTFLAGS64 +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
       90 +
  87   91  CFLAGS +=       $(CCVERBOSE)
  88   92  CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
  89   93  
  90   94  .KEEP_STATE:
  91   95  
  92   96  all: $(LIBS)
  93   97  
  94   98  lint: lintcheck
  95   99  
  96  100  pics/%.o: $(COM_DIR)/%.c
  97  101          $(COMPILE.c) -o $@ $<
  98  102          $(POST_PROCESS_O)
  99  103  
 100  104  pics/%.o: $(DHCP_DIR)/%.c
 101  105          $(COMPILE.c) -o $@ $<
 102  106          $(POST_PROCESS_O)
 103  107  
 104  108  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX