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>

@@ -73,13 +73,13 @@
 
 # Must define location of lint library source.
 SRCDIR =        $(LOC_DIR)
 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
 
-# OpenSSL requires us to turn this off
-LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN
-LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN
+# OpenSSL (incl. varying versions) requires us to turn these off
+LINTFLAGS   +=    -erroff=E_BAD_PTR_CAST_ALIGN,E_SUPPRESSION_DIRECTIVE_UNUSED
+LINTFLAGS64 +=    -erroff=E_BAD_PTR_CAST_ALIGN,E_SUPPRESSION_DIRECTIVE_UNUSED
 
 CFLAGS +=       $(CCVERBOSE)
 CPPFLAGS +=     -I$(LOC_DIR) -I$(COM_DIR) -I$(DHCP_DIR)
 
 .KEEP_STATE: