]> git.ipfire.org Git - thirdparty/git.git/commit
parse-options: cast long name for OPTION_ALIAS
authorPatrick Steinhardt <ps@pks.im>
Fri, 7 Jun 2024 06:38:54 +0000 (08:38 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jun 2024 17:30:53 +0000 (10:30 -0700)
commite463c5e8a0c306b62c25ff5856087ab32403158a
tree5925443709d87d37915600605e7f2598740d53f3
parent8d3a7ce441422f4b48f14c19a1b3be4ba7bfd30f
parse-options: cast long name for OPTION_ALIAS

We assign the long name for OPTION_ALIAS options to a non-constant value
field. We know that the variable will never be written to, but this will
cause warnings once we enable `-Wwrite-strings`.

Cast away the constness to be prepared for this change.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
parse-options.h