Mercurial > illumos > illumos-gate
changeset 13911:0b6822cb3649
3440 librtld_db demos need warnings gagged
Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Garrett D'Amore <garrett@damore.org>
author | Richard Lowe <richlowe@richlowe.net> |
---|---|
date | Tue, 01 Jan 2013 21:15:54 -0500 |
parents | f3454e0a097c |
children | 368aba3d1b08 |
files | usr/src/cmd/sgs/librtld_db/demo/Makefile.com usr/src/cmd/sgs/librtld_db/demo/common/dis.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/sgs/librtld_db/demo/Makefile.com Fri Jan 04 09:13:48 2013 -0800 +++ b/usr/src/cmd/sgs/librtld_db/demo/Makefile.com Tue Jan 01 21:15:54 2013 -0500 @@ -66,6 +66,10 @@ LINTFLAGS += $(LDLIBS) -L../../$(MACH) $(LINTERRS) LINTFLAGS64 += $(LDLIBS) -L../../$(MACH) $(LINTERRS) CLEANFILES += $(LINTOUT) + +CERRWARN += -_gcc=-Wno-parentheses +CERRWARN += -_gcc=-Wno-unused-label +CERRWARN += -_gcc=-Wno-unused-variable # DEMO DELETE END test-sparc= test-sparc-regs
--- a/usr/src/cmd/sgs/librtld_db/demo/common/dis.c Fri Jan 04 09:13:48 2013 -0800 +++ b/usr/src/cmd/sgs/librtld_db/demo/common/dis.c Tue Jan 01 21:15:54 2013 -0500 @@ -79,7 +79,7 @@ /* * Embed SOName in symbol name */ - if (mip = addr_to_map(ph, address)) { + if ((mip = addr_to_map(ph, address)) != 0) { (void) strcpy(buf, mip->mi_name); (void) strcat(buf, ":"); } else