From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31992 invoked by alias); 27 Jun 2013 08:44:39 -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 31905 invoked by uid 89); 27 Jun 2013 08:44:38 -0000 X-Spam-SWARE-Status: No, score=-6.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from mga14.intel.com (HELO mga14.intel.com) (143.182.124.37) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 27 Jun 2013 08:44:37 +0000 Received: from azsmga002.ch.intel.com ([10.2.17.35]) by azsmga102.ch.intel.com with ESMTP; 27 Jun 2013 01:44:35 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by AZSMGA002.ch.intel.com with ESMTP; 27 Jun 2013 01:44:34 -0700 Received: from ulslx001.iul.intel.com (ulslx001.iul.intel.com [172.28.207.63]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id r5R8iXnn009483; Thu, 27 Jun 2013 09:44:33 +0100 Received: from ulslx001.iul.intel.com (localhost [127.0.0.1]) by ulslx001.iul.intel.com with ESMTP id r5R8iWS8003449; Thu, 27 Jun 2013 10:44:32 +0200 Received: (from mgherza1@localhost) by ulslx001.iul.intel.com with id r5R8iWOE003445; Thu, 27 Jun 2013 10:44:32 +0200 From: Mircea Gherzan To: tromey@redhat.com, palves@redhat.com, jan.kratochvil@redhat.com Cc: gdb-patches@sourceware.org, Mircea Gherzan Subject: [PATCH 3/7] gdbserver: avoid empty structs when not using GCC Date: Thu, 27 Jun 2013 08:44:00 -0000 Message-Id: <1372322622-3216-4-git-send-email-mircea.gherzan@intel.com> In-Reply-To: <1372322622-3216-1-git-send-email-mircea.gherzan@intel.com> References: <1372322622-3216-1-git-send-email-mircea.gherzan@intel.com> X-SW-Source: 2013-06/txt/msg00812.txt.bz2 2013-06-25 Mircea Gherzan gdbserver/ * notif.h (notif_event): Add a dummy member to avoid compiler errors when not using GCC. Signed-off-by: Mircea Gherzan --- gdb/gdbserver/notif.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gdb/gdbserver/notif.h b/gdb/gdbserver/notif.h index 608b763..ed3c714 100644 --- a/gdb/gdbserver/notif.h +++ b/gdb/gdbserver/notif.h @@ -27,6 +27,10 @@ typedef struct notif_event { +#ifndef __GNUC__ + /* C requires that a struct or union has at least one member. */ + char dummy; +#endif } *notif_event_p; DECLARE_QUEUE_P (notif_event_p); -- 1.7.12.4