Re: [PATCH v2 8/9] rebase -i: learn to abbreviate command names

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 4, 2017 at 5:17 AM, Liam Beguin <liambeguin@xxxxxxxxx> wrote:
> +static const char command_to_char(const enum todo_command command)
> +{
> +       if (command < TODO_COMMENT && todo_command_info[command].c)
> +               return todo_command_info[command].c;
> +       return comment_line_char;
> +}

    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)
                   ^

Maybe drop the first const.
-- 
Duy



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux