diff options
author | Bruno Haible <bruno@clisp.org> | 2023-03-15 13:15:11 +0000 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2023-03-15 13:15:11 +0000 |
commit | f1ff021247304698ae71892060330bcb91683d70 (patch) | |
tree | f0d84b70227e5723e86356d9dc964bec252e33c8 | |
parent | e68b15a3ef3433e5479e45c1a06ceb8a77d53464 (diff) | |
download | coreutils-f1ff021247304698ae71892060330bcb91683d70.tar.gz |
build: avoid -Wsometimes-uninitialized on macOS 12
* src/pr.c (integer_overflow): Mark as _Noreturn.
* src/test.c (beyond): Likewise.
-rw-r--r-- | src/pr.c | 2 | ||||
-rw-r--r-- | src/test.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -772,7 +772,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -static void +static _Noreturn void integer_overflow (void) { die (EXIT_FAILURE, 0, _("integer overflow")); diff --git a/src/test.c b/src/test.c index 103a72ad3..4e84849f0 100644 --- a/src/test.c +++ b/src/test.c @@ -119,7 +119,7 @@ unary_advance (void) * beyond - call when we're beyond the end of the argument list (an * error condition) */ -static void +static _Noreturn void beyond (void) { test_syntax_error (_("missing argument after %s"), quote (argv[argc - 1])); |