[RFC/commit 4/4] Add -Wunused-function to compile flags.

Pedro Alves pedro@codesourcery.com
Wed Jan 13 14:25:00 GMT 2010


On Wednesday 13 January 2010 09:22:08, Joel Brobecker wrote:
> As discussed earlier, this is a patch that adds -Wunused-function to
> our list of warning flags used during compilation.
> 
> gdb/ChangeLog:
> 
>         * configure.ac: Add -Wunused-function to build_warnings.
>         * configure: Regenerate.
> 
> This is depending on the previous 3 patches that delete some of the
> unused files.  It has been tested on x86_64-linux where all unused
> functions should have been removed.  Given the number of unused
> functions it found, I wouldn't be surprised if it triggers more errors
> on other ports...

Did you try an --enable-targets=all build (with --enable-64-bit-bfd, 
but that's implicit since you're on x86_64) ?  Native files are hard
to test, but target dependent files not.

> I will commit shortly after having checked in the first 3 patches.

-- 
Pedro Alves



More information about the Gdb-patches mailing list