diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-12-30 15:14:37 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-12-30 15:14:37 +0100 |
commit | 329a4f5b40c85077859ad8be2830d1e3511c10d0 (patch) | |
tree | eaa54dff5aafad4733812cc048fd6522dfd07b76 | |
parent | 9b8caac033386c242c1ef774c0cd738c8ff9c09a (diff) |
Remove unreachable()
-rw-r--r-- | grab.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -16,12 +16,6 @@ # error "REG_STARTEND not defined" #endif -#ifdef __GNUC__ -# define unreachable() __builtin_unreachable() -#else -# define unreachable() -#endif - #define die(...) err(EXIT_FAILURE, __VA_ARGS__); #define diex(...) errx(EXIT_FAILURE, __VA_ARGS__); #define warn(...) \ @@ -107,9 +101,8 @@ main(int argc, char **argv) while ((opt = getopt(argc, argv, "hz")) != -1) { switch (opt) { case 'h': - if (execlp("man", "man", "1", argv[0], NULL) == -1) - die("execlp: man 1 %s", argv[0]); - unreachable(); + execlp("man", "man", "1", argv[0], NULL); + die("execlp: man 1 %s", argv[0]); case 'z': delim = '\0'; break; |