diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-06-07 08:38:54 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-06-07 10:30:53 -0700 |
| commit | e463c5e8a0c306b62c25ff5856087ab32403158a (patch) | |
| tree | 5925443709d87d37915600605e7f2598740d53f3 /builtin/send-pack.c | |
| parent | http: do not assign string constant to non-const field (diff) | |
| download | git-e463c5e8a0c306b62c25ff5856087ab32403158a.tar.gz git-e463c5e8a0c306b62c25ff5856087ab32403158a.zip | |
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>
Diffstat (limited to 'builtin/send-pack.c')
0 files changed, 0 insertions, 0 deletions
