From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7607 invoked by alias); 16 Sep 2004 18:15:08 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 7599 invoked from network); 16 Sep 2004 18:15:07 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 16 Sep 2004 18:15:07 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.10) with ESMTP id i8GIF6pa018463 for ; Thu, 16 Sep 2004 14:15:06 -0400 Received: from localhost.redhat.com (porkchop.devel.redhat.com [172.16.58.2]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i8GIF5r01521; Thu, 16 Sep 2004 14:15:06 -0400 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 4EA4628D2; Thu, 16 Sep 2004 14:12:53 -0400 (EDT) Message-ID: <4149D7A5.1020900@gnu.org> Date: Thu, 16 Sep 2004 18:15:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-GB; rv:1.4.1) Gecko/20040831 MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [commit] gnu-v3-abi.c:430: warning: assignment from incompatible pointer type Content-Type: multipart/mixed; boundary="------------070807080502050007020700" X-SW-Source: 2004-09/txt/msg00279.txt.bz2 This is a multi-part message in MIME format. --------------070807080502050007020700 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 501 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 --------------070807080502050007020700 Content-Type: text/plain; name="diffs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="diffs" Content-length: 1073 2004-09-16 Andrew Cagney * 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 --------------070807080502050007020700--