This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] gnu-v3-abi.c:430: warning: assignment from incompatiblepointer type


Hello,

Using FC3's GCC 3.4, I'm seeing the warning:

/home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c: In function `init_gnuv3_ops':
/home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c:430: warning: assignment from incom
patible pointer type
/home/cygnus/cagney/GDB/src/gdb/gnu-v3-abi.c:431: warning: assignment from incom
patible pointer type


I'm not sure how it should be fixed (it's messy, see patch for description) - suggestions? For the moment I've disabled -Werror on that file.

committed,
Andrew
2004-09-16  Andrew Cagney  <cagney@gnu.org>

	* Makefile.in (gnu-v3-abi.o): Add explict rule to avoid -Werror
	problem.

Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.619
diff -p -u -r1.619 Makefile.in
--- Makefile.in	13 Sep 2004 20:55:36 -0000	1.619
+++ Makefile.in	16 Sep 2004 18:11:47 -0000
@@ -1432,6 +1432,14 @@ main.o: main.c
 	$(CC) -c $(INTERNAL_CFLAGS) $(TARGET_SYSTEM_ROOT_DEFINE) \
 		-DBINDIR=\"$(bindir)\" $(srcdir)/main.c
 
+# FIXME: cagney/2004-09-16: "gnu-v3-abi.c", with a GCC 3.4 compiler,
+# gets a "assignment from incompatible pointer type" warning.  The
+# return types - "enum gnu_v3_dtor_kinds" vs "enum ctor_kinds" -
+# conflict.
+gnu-v3-abi.o: $(srcdir)/gnu-v3-abi.c
+	$(CC) -c $(INTERNAL_WARN_CFLAGS) $(NO_WERROR_CFLAGS) \
+		$(srcdir)/gnu-v3-abi.c
+
 # FIXME: cagney/2003-08-10: "monitor.c" gets -Wformat-nonliteral
 # errors.  It turns out that that is the least of monitor.c's
 # problems.  The function print_vsprintf appears to be using

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]