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

@@ -38,12 +38,17 @@
 BERLIB64=       $(BERLIB)
 
 OPENSSLLIBS=    $(BERLIB) -lcrypto -lcryptoutil -lc
 OPENSSLLIBS64=  $(BERLIB64) -lcrypto -lcryptoutil -lc
 
-LINTSSLLIBS     = $(BERLIB) -lcrypto -lcryptoutil -lc
-LINTSSLLIBS64   = $(BERLIB64) -lcrypto -lcryptoutil -lc
+LINTSSLLIBS     = $(BERLIB) -lcryptoutil -lc
+LINTSSLLIBS64   = $(BERLIB64) -lcryptoutil -lc
+
+# OpenSSLs API includes some macro expansions that are incompatible with lint,
+# depending on the version of OpenSSL used
+LINTFLAGS   +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
+LINTFLAGS64 +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
 
 SRCDIR=         ../common
 INCDIR=         ../../include
 
 CFLAGS          +=      $(CCVERBOSE)