From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24926 invoked by alias); 15 Nov 2010 23:51:50 -0000 Received: (qmail 24918 invoked by uid 22791); 15 Nov 2010 23:51:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Nov 2010 23:51:44 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id B50171B41DD for ; Mon, 15 Nov 2010 23:51:42 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] gdbserver: fix warning in nommu clone Date: Mon, 15 Nov 2010 23:51:00 -0000 Message-Id: <1289865042-7691-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes 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 X-SW-Source: 2010-11/txt/msg00182.txt.bz2 Building gdbserver for nommu targets atm fails with: linux-low.c: In function 'linux_tracefork_child': linux-low.c:4151: error: pointer of type 'void *' used in arithmetic So cast the void* to a char*. Signed-off-by: Mike Frysinger 2010-11-16 Mike Frysinger * linux-low.c (linux_tracefork_child): Add char* cast to arg. --- gdb/gdbserver/linux-low.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 7c50251..a81a8dc 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -4148,7 +4148,7 @@ linux_tracefork_child (void *arg) __clone2 (linux_tracefork_grandchild, arg, STACK_SIZE, CLONE_VM | SIGCHLD, NULL); #else - clone (linux_tracefork_grandchild, arg + STACK_SIZE, + clone (linux_tracefork_grandchild, (char *)arg + STACK_SIZE, CLONE_VM | SIGCHLD, NULL); #endif -- 1.7.3.1