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/libpkg/Makefile.com
          +++ new/usr/src/lib/libpkg/Makefile.com
↓ open down ↓ 50 lines elided ↑ open up ↑
  51   51  POFILE =        libpkg.po
  52   52  MSGFILES =      $(OBJECTS:%.o=../common/%.i)
  53   53  CLEANFILES +=   $(MSGFILES)
  54   54  
  55   55  # This library is NOT lint clean
  56   56  
  57   57  # openssl forces us to ignore dubious pointer casts, thanks to its clever
  58   58  # use of macros for stack management.
  59   59  LINTFLAGS=      -umx -errtags \
  60   60                  -erroff=E_BAD_PTR_CAST_ALIGN,E_BAD_PTR_CAST
       61 +LINTFLAGS +=    -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
       62 +LINTFLAGS64 +=  -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
  61   63  $(LINTLIB):=    SRCS = $(SRCDIR)/$(LINTSRC)
  62   64  
  63   65  
  64   66  LIBS = $(DYNLIB) $(LINTLIB)
  65   67  
  66   68  
  67   69  LDLIBS +=       -lc -lssl -lwanboot -lcrypto -lscf -ladm
  68   70  
  69   71  CFLAGS +=       $(CCVERBOSE)
  70   72  CERRWARN +=     -_gcc=-Wno-unused-label
↓ open down ↓ 21 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX