Re: [PATCH] config.mak.dev: enable -Wunused-function

2018-10-18 Thread Junio C Hamano
Ramsay Jones writes: > I haven't looked too deeply, but this seems to be caused by > Junio's commit 42c89ea70a ("SQUASH??? - convert the other user of > string-list as db", 2018-10-17) which removes a call to the > add_existing() function - the subject of the warning. That is very understandable

Re: [PATCH] config.mak.dev: enable -Wunused-function

2018-10-18 Thread Jeff King
On Thu, Oct 18, 2018 at 05:48:16PM +0200, Duy Nguyen wrote: > > - conditional compilation, where we may or may not need a > > static helper. These generally fall into one of two > > categories: > > > > - the call should not be conditional, but rather the > > function body i

Re: [PATCH] config.mak.dev: enable -Wunused-function

2018-10-18 Thread Ramsay Jones
On 18/10/2018 08:05, Jeff King wrote: > We explicitly omitted -Wunused-function when we added > -Wextra, but there is no need: the current code compiles > cleanly with it. And it's worth having, since it can let you > know when there are cascading effects from a cleanup (e.g., > deleting one fun

Re: [PATCH] config.mak.dev: enable -Wunused-function

2018-10-18 Thread Duy Nguyen
On Thu, Oct 18, 2018 at 9:05 AM Jeff King wrote: > > We explicitly omitted -Wunused-function when we added > -Wextra, but there is no need: the current code compiles > cleanly with it. And it's worth having, since it can let you > know when there are cascading effects from a cleanup (e.g., > delet

Re: [PATCH] config.mak.dev: enable -Wunused-function

2018-10-18 Thread Jeff King
On Thu, Oct 18, 2018 at 03:05:22AM -0400, Jeff King wrote: > diff --git a/config.mak.dev b/config.mak.dev > index 92d268137f..bbeeff44fe 100644 > --- a/config.mak.dev > +++ b/config.mak.dev > @@ -34,7 +34,6 @@ ifeq ($(filter extra-all,$(DEVOPTS)),) > CFLAGS += -Wno-empty-body > CFLAGS += -Wno-mi

[PATCH] config.mak.dev: enable -Wunused-function

2018-10-18 Thread Jeff King
We explicitly omitted -Wunused-function when we added -Wextra, but there is no need: the current code compiles cleanly with it. And it's worth having, since it can let you know when there are cascading effects from a cleanup (e.g., deleting one function lets you delete its static helpers). There a