summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-03-15 13:15:11 +0000
committerPádraig Brady <P@draigBrady.com>2023-03-15 13:15:11 +0000
commitf1ff021247304698ae71892060330bcb91683d70 (patch)
treef0d84b70227e5723e86356d9dc964bec252e33c8
parente68b15a3ef3433e5479e45c1a06ceb8a77d53464 (diff)
downloadcoreutils-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.c2
-rw-r--r--src/test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pr.c b/src/pr.c
index 28a695242..2c5cdceb1 100644
--- a/src/pr.c
+++ b/src/pr.c
@@ -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]));