diff options
| author | Dan Kimmel <dan.kimmel@delphix.com> | 2016-12-02 12:20:31 -0800 |
|---|---|---|
| committer | Matthew Ahrens <mahrens@delphix.com> | 2016-12-02 12:32:27 -0800 |
| commit | 4ba5b9616327ef64e8abc737d29b3faabc6ae68c (patch) | |
| tree | 6baefbf7d40916feec51964371dcea3660be4481 /usr/src/lib | |
| parent | 719d176126cc1c689a469d4c3553d770d1c4e94e (diff) | |
| download | illumos-joyent-4ba5b9616327ef64e8abc737d29b3faabc6ae68c.tar.gz | |
7586 remove #ifdef __lint hack from dmu.h
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/lib')
| -rw-r--r-- | usr/src/lib/brand/solaris10/s10_brand/Makefile.com | 5 | ||||
| -rw-r--r-- | usr/src/lib/libzfs/Makefile.com | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/lib/brand/solaris10/s10_brand/Makefile.com b/usr/src/lib/brand/solaris10/s10_brand/Makefile.com index 022b31b4e7..9b721953e8 100644 --- a/usr/src/lib/brand/solaris10/s10_brand/Makefile.com +++ b/usr/src/lib/brand/solaris10/s10_brand/Makefile.com @@ -20,6 +20,7 @@ # # # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. +# Copyright (c) 2016 by Delphix. All rights reserved. # LIBRARY = s10_brand.a @@ -52,7 +53,7 @@ SRCS = $(CSRCS) # normally stable, there are examples, such as with the solaris8 brand, where # we could not combine the brand's libc with the native linker. Since we want # to run in a known configuration, we use the S10 libc/linker combination. -# +# # There is one more non-obvious side effect of using the s10 linker that # should be mentioned. Since the linker is used to setup processes before # libc is loaded, it makes system calls directly (ie avoiding libc), and @@ -82,6 +83,8 @@ C99LMODE= -Xc99=%all DYNFLAGS += $(DYNFLAGS_$(CLASS)) DYNFLAGS += $(BLOCAL) $(ZNOVERSION) -Wl,-e_start LDLIBS += -lc -lmapmalloc +LINTFLAGS += -erroff=E_STATIC_UNUSED +LINTFLAGS64 += -erroff=E_STATIC_UNUSED CERRWARN += -_gcc=-Wno-uninitialized diff --git a/usr/src/lib/libzfs/Makefile.com b/usr/src/lib/libzfs/Makefile.com index 4c8ed5d57a..c80f481d6d 100644 --- a/usr/src/lib/libzfs/Makefile.com +++ b/usr/src/lib/libzfs/Makefile.com @@ -20,8 +20,8 @@ # # # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. -# Copyright (c) 2011, 2015 by Delphix. All rights reserved. # Copyright 2016 Igor Kozhukhov <ikozhukhov@gmail.com> +# Copyright (c) 2011, 2016 by Delphix. All rights reserved. # LIBRARY= libzfs.a @@ -76,6 +76,9 @@ CPPFLAGS += $(INCS) -D_LARGEFILE64_SOURCE=1 -D_REENTRANT # There's no lint library for zlib, so only include this when building $(DYNLIB) := LDLIBS += -lz +LINTFLAGS += -erroff=E_STATIC_UNUSED +LINTFLAGS64 += -erroff=E_STATIC_UNUSED + SRCS= $(OBJS_COMMON:%.o=$(SRCDIR)/%.c) \ $(OBJS_SHARED:%.o=$(SRC)/common/zfs/%.c) $(LINTLIB) := SRCS= $(SRCDIR)/$(LINTSRC) |
