On Sun, 7 Apr 2024 at 06:40, Junio C Hamano <gitster@xxxxxxxxx> wrote: > > Jeff King <peff@xxxxxxxx> writes: > > > I don't really see any need to mark the wrapper as inline. It's one > > basic function call (on top of an interface which requires a callback > > anyway!), and I suspect many compilers would consider inlining anyway, > > since it's a static function. > > > > Ditto for remotes_pushremote_get(), though it doesn't have a forward > > declaration. > > Yup. I presonally feel that we should get rid of "static inline" > unless they appear in header files. The compilers should in general > be able to do good enough job finding what to inline than we can (1) > initially mark what to inline, and (2) update by dropping "inline" > that is no longer appropriate as the code evolves. The compiler is an ancient gcc 4.2.0 cross-compiler for a mipsel-linux-uclibc environment. It doesn't really matter though, as folk seem to agree the definition and declaration should match, which I think they should. I also agree that having inline probably makes no sense, as the compiler can usually work this stuff out itself. So I don't mind whether all the inlines get removed or they all stay, as long as they are all effectively consistent, which they are currently not, and the compiler righty (to my mind) complains. Thanks.