From: Andrew Cagney <cagney@gnu.org>
To: gdb-patches@sources.redhat.com
Subject: [commit] gnu-v3-abi.c:430: warning: assignment from incompatible pointer type
Date: Thu, 16 Sep 2004 18:15:00 -0000 [thread overview]
Message-ID: <4149D7A5.1020900@gnu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 501 bytes --]
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
[-- Attachment #2: diffs --]
[-- Type: text/plain, Size: 1073 bytes --]
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
next reply other threads:[~2004-09-16 18:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-16 18:15 Andrew Cagney [this message]
2004-09-16 18:39 ` Daniel Jacobowitz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4149D7A5.1020900@gnu.org \
--to=cagney@gnu.org \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox