aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-23 14:13:23 +0000
committerOmar Polo <op@omarpolo.com>2023-07-23 14:13:23 +0000
commit88c03474f897a26fccad0549860d932004185353 (patch)
tree7203ca78336d2b5c2e37e0dc8259e2592cc86a73
parent67ae3d8e03348c995b0afc3aebb7a5772bbd5b06 (diff)
revert previous
Somehow the compat for __dead is not working properly on macos (cirrus ci) since it complains that parse_debug() does not return a value in all control paths when it uses usage() (marked as __dead) to catch a wrong usage.
-rw-r--r--gg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gg.c b/gg.c
index 3349f6f..d8508f2 100644
--- a/gg.c
+++ b/gg.c
@@ -305,7 +305,7 @@ get(const char *r)
}
}
-static void __dead
+static void __attribute__((noreturn))
usage(void)
{
fprintf(stderr, "version: " GG_STRING "\n");