From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27718 invoked by alias); 25 Oct 2006 21:27:58 -0000 Received: (qmail 27709 invoked by uid 22791); 25 Oct 2006 21:27:58 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Oct 2006 21:27:53 +0000 Received: (qmail 26072 invoked from network); 25 Oct 2006 21:27:51 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 25 Oct 2006 21:27:51 -0000 To: gdb-patches@sourceware.org Subject: PATCH: Add 'static' keyword From: Jim Blandy Date: Wed, 25 Oct 2006 21:27:00 -0000 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00276.txt.bz2 It's helpful when reading code to be able to see that a function is static simply looking at its definition. Committed as obvious. gdb/ChangeLog: 2006-10-25 Jim Blandy * p-valprint.c (pascal_object_print_value): Add 'static' keyword to function definition, to match declaration earlier in file. Index: gdb/p-valprint.c =================================================================== RCS file: /cvs/src/src/gdb/p-valprint.c,v retrieving revision 1.41 diff -u -r1.41 p-valprint.c --- gdb/p-valprint.c 18 Jan 2006 21:24:19 -0000 1.41 +++ gdb/p-valprint.c 25 Oct 2006 21:25:22 -0000 @@ -915,7 +915,7 @@ /* Special val_print routine to avoid printing multiple copies of virtual baseclasses. */ -void +static void pascal_object_print_value (struct type *type, const gdb_byte *valaddr, CORE_ADDR address, struct ui_file *stream, int format, int recurse,