summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2012-07-22 16:03:46 -0400
committerRichard Lowe <richlowe@richlowe.net>2012-09-22 19:47:23 -0400
commit7014882c6a3672fd0e5d60200af8643ae53c5928 (patch)
tree2c46b144ad1c8047ab5b22280d7f3920fa47c453 /usr/src/tools/ctf
parent1a5ea5323390ffdf86f171d238b41e381d2292b9 (diff)
downloadillumos-joyent-7014882c6a3672fd0e5d60200af8643ae53c5928.tar.gz
2933 compiler warning gags need better granularity
Reviewed by: Eric Schrock <eric.schrock@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/tools/ctf')
-rw-r--r--usr/src/tools/ctf/Makefile.ctf3
-rw-r--r--usr/src/tools/ctf/ctfstrip/Makefile1
-rw-r--r--usr/src/tools/ctf/cvt/Makefile.com4
-rw-r--r--usr/src/tools/ctf/dump/Makefile.com2
-rw-r--r--usr/src/tools/ctf/dwarf/Makefile.com2
-rw-r--r--usr/src/tools/ctf/stabs/Makefile.com2
6 files changed, 12 insertions, 2 deletions
diff --git a/usr/src/tools/ctf/Makefile.ctf b/usr/src/tools/ctf/Makefile.ctf
index 7b42b93bb6..ace863e89b 100644
--- a/usr/src/tools/ctf/Makefile.ctf
+++ b/usr/src/tools/ctf/Makefile.ctf
@@ -22,8 +22,6 @@
# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
-# ident "%Z%%M% %I% %E% SMI"
-#
include ../../../Makefile.tools
@@ -46,3 +44,4 @@ HDRDIRS= \
CPPFLAGS += $(HDRDIRS)
CFLAGS += $(CCVERBOSE)
+CERRWARN += -_gcc=-Wno-parentheses
diff --git a/usr/src/tools/ctf/ctfstrip/Makefile b/usr/src/tools/ctf/ctfstrip/Makefile
index 80eca447e4..dee8591408 100644
--- a/usr/src/tools/ctf/ctfstrip/Makefile
+++ b/usr/src/tools/ctf/ctfstrip/Makefile
@@ -17,6 +17,7 @@ SRCS = \
CFLAGS += $(CCVERBOSE)
include $(SRC)/tools/Makefile.tools
+CERRWARN += -_gcc=-Wno-unused-variable
OBJS = $(SRCS:%.c=%.o)
LINTFILES = $(SRCS:%.c=%.ln)
diff --git a/usr/src/tools/ctf/cvt/Makefile.com b/usr/src/tools/ctf/cvt/Makefile.com
index 051751ec5a..fb35379c3a 100644
--- a/usr/src/tools/ctf/cvt/Makefile.com
+++ b/usr/src/tools/ctf/cvt/Makefile.com
@@ -78,6 +78,10 @@ CPPFLAGS += -D_REENTRANT
CFLAGS += $(CTF_FLAGS)
LINTFLAGS += -mnux
+CERRWARN += -_gcc=-Wno-unused
+CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += -_gcc=-Wno-switch
+
C99MODE = $(C99_ENABLE)
ctfconvert := LDFLAGS += $(DWARFLDFLAGS)
diff --git a/usr/src/tools/ctf/dump/Makefile.com b/usr/src/tools/ctf/dump/Makefile.com
index 2fbbeb1415..ca3e925d01 100644
--- a/usr/src/tools/ctf/dump/Makefile.com
+++ b/usr/src/tools/ctf/dump/Makefile.com
@@ -36,6 +36,8 @@ LDLIBS += -lelf -lz
OBJS = $(SRCS:%.c=%.o)
LINTFILES = $(SRCS:%.c=%.ln)
+CERRWARN += -_gcc=-Wno-uninitialized
+
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)
diff --git a/usr/src/tools/ctf/dwarf/Makefile.com b/usr/src/tools/ctf/dwarf/Makefile.com
index 4c25cdda1d..51e788ff04 100644
--- a/usr/src/tools/ctf/dwarf/Makefile.com
+++ b/usr/src/tools/ctf/dwarf/Makefile.com
@@ -74,6 +74,8 @@ FILEMODE = 0755
SRCDIR = ../common/
CPPFLAGS += -I$(SRCDIR) -DELF_TARGET_ALL=1
+CERRWARN += -_gcc=-Wno-unused
+CERRWARN += -_gcc=-Wno-implicit-function-declaration
LDLIBS = -lelf -lc
diff --git a/usr/src/tools/ctf/stabs/Makefile.com b/usr/src/tools/ctf/stabs/Makefile.com
index e3f8e9689a..6703c34f06 100644
--- a/usr/src/tools/ctf/stabs/Makefile.com
+++ b/usr/src/tools/ctf/stabs/Makefile.com
@@ -44,6 +44,8 @@ OBJS = $(SRCS:%.c=%.o)
LINTFILES = $(SRCS:%.c=%.ln)
LINTFLAGS = -mnux -L$(ROOT)/usr/lib
+CERRWARN += -_gcc=-Wno-uninitialized
+CERRWARN += -_gcc=-Wno-unused
.NO_PARALLEL:
.PARALLEL: $(OBJS) $(LINTFILES)