Re: [commit/Ada] Remove dead function (extract_string)...

Joel Brobecker
2010-01-12T18:14:33Z

> Joel> I just noticed this unused function in ada-lang.c. It turns out I was
> Joel> supposed to have deleted it last year, but somehow I forgot.
>
> Adding -Wunused-function to the end of WARN_CFLAGS is interesting.
> I see more than a few unused functions -- and this is only looking at
> static functions.

I think we should indeed try to enable that warning. I assume it's
just a matter of adding it to

build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
-Wformat-nonliteral -Wno-pointer-sign \
-Wno-unused -Wunused-value -Wno-switch -Wno-char-subscripts"

?

I'll give it a test tomorrow, and send a patch if all is OK.

--
Joel