From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30857 invoked by alias); 7 Mar 2012 16:35:22 -0000 Received: (qmail 30728 invoked by uid 22791); 7 Mar 2012 16:35:21 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Mar 2012 16:35:05 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3V30ng6TxNz4Kn9d for ; Wed, 7 Mar 2012 17:35:03 +0100 (CET) X-Auth-Info: OUATPIQhBW6xOY2Jz3Lf1PI247ywYs/C3APdjMZeF4U= Received: from igel.home (ppp-88-217-105-80.dynamic.mnet-online.de [88.217.105.80]) by mail.mnet-online.de (Postfix) with ESMTPA id 3V30ng4tklz4KK2f for ; Wed, 7 Mar 2012 17:35:03 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 3AD36CA29E; Wed, 7 Mar 2012 17:35:02 +0100 (CET) From: Andreas Schwab To: gdb-patches@sourceware.org Subject: m68k-linux: fix -Wmissing-prototype warning X-Yow: I don't know WHY I said that.. I think it came from the FILLINGS in my rear molars.. Date: Wed, 07 Mar 2012 16:35:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-03/txt/msg00226.txt.bz2 2012-03-07 Andreas Schwab * m68klinux-nat.c (getregs_supplies): Make static. (getfpregs_supplies): Likewise. (have_ptrace_getregs): Likewise. diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c index 60e4373..c7137c0 100644 --- a/gdb/m68klinux-nat.c +++ b/gdb/m68klinux-nat.c @@ -69,20 +69,20 @@ static const int regmap[] = #define NUM_GREGS (18) #define MAX_NUM_REGS (NUM_GREGS + 11) -int +static int getregs_supplies (int regno) { return 0 <= regno && regno < NUM_GREGS; } -int +static int getfpregs_supplies (int regno) { return M68K_FP0_REGNUM <= regno && regno <= M68K_FPI_REGNUM; } /* Does the current host support the GETREGS request? */ -int have_ptrace_getregs = +static int have_ptrace_getregs = #ifdef HAVE_PTRACE_GETREGS 1 #else -- 1.7.9.3 -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."