diff options
| author | Junio C Hamano <gitster@pobox.com> | 2025-08-07 08:14:37 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-08-07 08:14:37 -0700 |
| commit | 0349fa013eb4dcb1f2001a0902d69c2fee9e33f2 (patch) | |
| tree | 899f3e7a1cb7c7331dfb0d70d97575d7f99bab26 | |
| parent | A bit more after -rc0 (diff) | |
| parent | revert: initialize const value (diff) | |
| download | git-0349fa013eb4dcb1f2001a0902d69c2fee9e33f2.tar.gz git-0349fa013eb4dcb1f2001a0902d69c2fee9e33f2.zip | |
Merge branch 'jk/revert-squelch-compiler-warning'
Squelch false-positive compiler warning.
* jk/revert-squelch-compiler-warning:
revert: initialize const value
Diffstat (limited to '')
| -rw-r--r-- | builtin/revert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/revert.c b/builtin/revert.c index e07c2217fe..c3f92b585d 100644 --- a/builtin/revert.c +++ b/builtin/revert.c @@ -111,7 +111,7 @@ static int run_sequencer(int argc, const char **argv, const char *prefix, const char * const * usage_str = revert_or_cherry_pick_usage(opts); const char *me = action_name(opts); const char *cleanup_arg = NULL; - const char sentinel_value; + const char sentinel_value = 0; /* value not important */ const char *strategy = &sentinel_value; const char *gpg_sign = &sentinel_value; enum empty_action empty_opt = EMPTY_COMMIT_UNSPECIFIED; |
