]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: cache: fix non-inline vs inline declaration mismatch to silence a warning
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 15:19:08 +0000 (17:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Apr 2024 15:25:25 +0000 (17:25 +0200)
commitb22b968a486e949b3ccfd955b65ddb61db14fe24
treeedcc7c900a1b6ddbdc6b9844c518d2cb2b86bfdf
parente791b243f04369ee8c6b2ff883bf31bde955019f
BUILD: cache: fix non-inline vs inline declaration mismatch to silence a warning

Some compilers report this on the cache:
  src/cache.c:235: warning: 'release_entry_locked' declared inline after being called
  src/cache.c:235: warning: previous declaration of 'release_entry_locked' was here

And indeed, the function is first declared non-inline and later inline.
Let's just set the inline status from the beginning. It's not really
needed to backport this.
src/cache.c