summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/arguments.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2021-11-02 10:57:05 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2021-11-02 10:57:05 +0000
commit3ff7a54d0e55535cade838c7d16adef5600f090e (patch)
tree09a7a7e341d3aa0a7fe20365803af5b0559972b5 /usr.bin/tmux/arguments.c
parent14c8bc442914f655a4c0ca0edd77f9b7c6483f2c (diff)
fatalx on unknown enum members in a couple of places, from Ben Boeckel.
Diffstat (limited to 'usr.bin/tmux/arguments.c')
-rw-r--r--usr.bin/tmux/arguments.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/arguments.c b/usr.bin/tmux/arguments.c
index 03a5b824a13..ce3313801f5 100644
--- a/usr.bin/tmux/arguments.c
+++ b/usr.bin/tmux/arguments.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: arguments.c,v 1.51 2021/09/09 21:55:03 nicm Exp $ */
+/* $OpenBSD: arguments.c,v 1.52 2021/11/02 10:57:04 nicm Exp $ */
/*
* Copyright (c) 2010 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -108,6 +108,7 @@ args_value_as_string(struct args_value *value)
case ARGS_STRING:
return (value->string);
}
+ fatalx("unexpected argument type");
}
/* Create an empty arguments set. */
@@ -753,6 +754,7 @@ args_make_commands(struct args_command_state *state, int argc, char **argv,
case CMD_PARSE_SUCCESS:
return (pr->cmdlist);
}
+ fatalx("invalid parse return state");
}
/* Free commands state. */