aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-06-07 08:38:35 +0200
committerJunio C Hamano <gitster@pobox.com>2024-06-07 10:30:52 -0700
commit9f03e4813a5b4e469b3a7f5ad4ada3a9c3f92bfd (patch)
tree2cbd3ae7e81659c200aea4c0582cb74da021767d /builtin/commit.c
parentobject-file: mark cached object buffers as const (diff)
downloadgit-9f03e4813a5b4e469b3a7f5ad4ada3a9c3f92bfd.tar.gz
git-9f03e4813a5b4e469b3a7f5ad4ada3a9c3f92bfd.zip
object-file: make `buf` parameter of `index_mem()` a constant
The `buf` parameter of `index_mem()` is a non-constant string. This will break once we enable `-Wwrite-strings` because we also pass constants from at least one callsite. Adapt the parameter to be a constant. As we cannot free the buffer without casting now, this also requires us to move the lifetime of the nested buffer around. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions