From cbe659043fd6c93e4033bebefd3e686a664c2011 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 12 Dec 2022 07:14:26 +0000 Subject: [PATCH] eclass/flag-o-matic: Sync with Gentoo It's from Gentoo commit 0af9e8d12524b8ce286bcdad23a0a3d8d8ae9b40. --- .../src/third_party/portage-stable/eclass/flag-o-matic.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass b/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass index 365741a6dd..a4e8f19e00 100644 --- a/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass +++ b/sdk_container/src/third_party/portage-stable/eclass/flag-o-matic.eclass @@ -986,7 +986,7 @@ append-atomic-flags() { # fails because -latomic is actually needed or if we have a # broken toolchain (like due to bad FLAGS) read -r -d '' code <<- EOF - int main() + int main(void) { return 0; } @@ -1007,7 +1007,7 @@ append-atomic-flags() { # https://github.com/buildroot/buildroot/commit/6856e417da4f3aa77e2a814db2a89429af072f7d read -r -d '' code <<- EOF #include - int main() + int main(void) { uint$((${bytesize} * 8))_t a = 0; __atomic_add_fetch(&a, 3, __ATOMIC_RELAXED);