summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-12-27 11:12:45 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-27 11:12:45 -0800
commitee5462d6e71aad04628ccb8f078784468bfa4139 (patch)
tree0799df843e22607fb80e1021333a853388c2a054 /sequencer.c
parentt3404: add test case for abbreviated commands (diff)
downloadtgif-ee5462d6e71aad04628ccb8f078784468bfa4139.tar.xz
sequencer.c: drop 'const' from function return type
With -Werror=ignored-qualifiers, a function that claims to return "const char" gets this error: CC sequencer.o sequencer.c:798:19: error: type qualifiers ignored on function return type [-Werror=ignored-qualifiers] static const char command_to_char(const enum todo_command command) ^ Reported-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index 115085d39c..2a407cbe54 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -795,7 +795,7 @@ static const char *command_to_string(const enum todo_command command)
die("Unknown command: %d", command);
}
-static const char command_to_char(const enum todo_command command)
+static char command_to_char(const enum todo_command command)
{
if (command < TODO_COMMENT && todo_command_info[command].c)
return todo_command_info[command].c;