mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-23 08:31:16 -03:00
getopt long_options to be const
This commit is contained in:
@@ -352,7 +352,7 @@ static int read_init(const struct config_paths_t &paths)
|
||||
*/
|
||||
static int fish_parse_opt(int argc, char **argv, std::vector<std::string> *cmds)
|
||||
{
|
||||
struct option long_options[] =
|
||||
const struct option long_options[] =
|
||||
{
|
||||
{ "command", required_argument, NULL, 'c' },
|
||||
{ "debug-level", required_argument, NULL, 'd' },
|
||||
|
||||
Reference in New Issue
Block a user