This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] add -Wold-style-declaration
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 01 Jul 2013 13:49:37 -0600
- Subject: Re: [PATCH 2/3] add -Wold-style-declaration
- References: <1371494572-26594-1-git-send-email-tromey at redhat dot com> <1371494572-26594-3-git-send-email-tromey at redhat dot com>
>>>>> "Tom" == Tom Tromey <tromey@redhat.com> writes:
Tom> This adds -Wold-style-declaration to gdb's list of warnings.
Tom> It turns out that a few places use "const static" rather than
Tom> "static const". The former is deprecated according to the C standard.
Tom> Tested by rebuilding with --enable-targets=all on x86-64 Fedora 18.
Tom> This misses most of the "nat" code, but any needed fixes are trivial.
Note that I grepped gdb for "const static" and did not find any more
hits. So, probably nothing will be needed.
Tom