From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28851 invoked by alias); 9 Aug 2014 14:10:01 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 28838 invoked by uid 89); 9 Aug 2014 14:10:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout20.012.net.il Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Aug 2014 14:09:58 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NA100I00LNPIU00@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sat, 09 Aug 2014 17:09:55 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NA100H0CM0IYR80@a-mtaout20.012.net.il> for gdb-patches@sourceware.org; Sat, 09 Aug 2014 17:09:55 +0300 (IDT) Date: Sat, 09 Aug 2014 14:10:00 -0000 From: Eli Zaretskii Subject: Warnings in native MinGW32 build of GDB 7.8 To: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83r40plpp3.fsf@gnu.org> X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00172.txt.bz2 I've built today a native MinGW32 GDB 7.8, and saw warnings about incomplete argument types: In file included from defs.h:631, from gdb.c:19: gdbarch.h:429: warning: parameter has incomplete type gdbarch.h:430: warning: parameter has incomplete type In file included from target-dcache.h:21, from target-dcache.c:19: dcache.h:42: warning: parameter has incomplete type I fixed that as below, but I wonder why no one else saw this. is this because I use an ancient version of GCC? OK to commit the below (master and 7.8 branch), with suitable ChangeLog entries? --- gdb/dcache.c~0 2014-07-29 15:37:42.000000000 +0300 +++ gdb/dcache.c 2014-08-09 16:17:31.823000000 +0300 @@ -18,6 +18,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "target.h" /* for 'enum target_xfer_status' */ #include "dcache.h" #include "gdbcmd.h" #include --- gdb/defs.h~0 2014-07-29 15:37:42.000000000 +0300 +++ gdb/defs.h 2014-08-09 15:33:59.666750000 +0300 @@ -628,6 +628,7 @@ #endif /* alloca not defined */ /* Dynamic target-system-dependent parameters for GDB. */ +#include "frame.h" /* for 'struct frame_id' */ #include "gdbarch.h" /* * Maximum size of a register. Something small, but large enough for --- gdb/target-dcache.c~0 2014-06-11 19:34:41.000000000 +0300 +++ gdb/target-dcache.c 2014-08-09 16:17:42.244875000 +0300 @@ -16,6 +16,7 @@ along with this program. If not, see . */ #include "defs.h" +#include "target.h" /* for 'enum target_xfer_status' */ #include "target-dcache.h" #include "gdbcmd.h" #include "progspace.h"