Print this page
5878 Additional lint fixes for sunstudio12.1 and more modern OpenSSL
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Reviewed by: Alexander Pyhalov <alp@rsu.ru>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libwanboot/Makefile.com
          +++ new/usr/src/lib/libwanboot/Makefile.com
↓ open down ↓ 67 lines elided ↑ open up ↑
  68   68  CERRWARN +=     -_gcc=-Wno-uninitialized
  69   69  
  70   70  # Must override SRCS from Makefile.lib since sources have
  71   71  # multiple source directories.
  72   72  SRCS =          $(LOC_SRCS) $(COM_SRCS) $(DHCP_SRCS)
  73   73  
  74   74  # Must define location of lint library source.
  75   75  SRCDIR =        $(LOC_DIR)
  76   76  $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  77   77  
  78      -# OpenSSL requires us to turn this off
  79      -LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
  80      -LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN
       78 +# OpenSSL (incl. varying versions) requires us to turn these off
       79 +LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN,E_SUPPRESSION_DIRECTIVE_UNUSED
       80 +LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN,E_SUPPRESSION_DIRECTIVE_UNUSED
  81   81  
  82   82  CFLAGS +=       $(CCVERBOSE)
  83   83  CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
  84   84  
  85   85  .KEEP_STATE:
  86   86  
  87   87  all: $(LIBS)
  88   88  
  89   89  lint: lintcheck
  90   90  
  91   91  pics/%.o: $(COM_DIR)/%.c
  92   92          $(COMPILE.c) -o $@ $<
  93   93          $(POST_PROCESS_O)
  94   94  
  95   95  pics/%.o: $(DHCP_DIR)/%.c
  96   96          $(COMPILE.c) -o $@ $<
  97   97          $(POST_PROCESS_O)
  98   98  
  99   99  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX