cpio: Do not use _Noreturn in gnulib

Backport a gnulib patch

(From OE-Core rev: 1baf1f2b5baaced3affe036e104e20e33c1c5016)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2023-01-14 07:49:17 -08:00
committed by Richard Purdie
parent 7205f011a3
commit be0cb1a711
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
From 02f1f63d3ff58f3473f1689a0322a234ce10b659 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 13 Jan 2023 22:13:45 -0800
Subject: [PATCH] obstack: Fix a clang warning
Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=0cc39712803ade7b2d4b89c36b143dad72404063]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
gnu/obstack.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gnu/obstack.c b/gnu/obstack.c
index 54b675d..4d6a1d5 100644
--- a/gnu/obstack.c
+++ b/gnu/obstack.c
@@ -326,7 +326,7 @@ int obstack_exit_failure = EXIT_FAILURE;
# include <libio/iolibio.h>
# endif
-static _Noreturn void
+static __attribute_noreturn__ void
print_and_abort (void)
{
/* Don't change any of these strings. Yes, it would be possible to add
--
2.39.0

View File

@@ -9,6 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=f27defe1e96c2e1ecd4e0c9be8967949"
SRC_URI = "${GNU_MIRROR}/cpio/cpio-${PV}.tar.gz \
file://0001-Unset-need_charset_alias-when-building-for-musl.patch \
file://0002-src-global.c-Remove-superfluous-declaration-of-progr.patch \
file://0001-obstack-Fix-a-clang-warning.patch \
file://CVE-2021-38185.patch \
"