summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-12-06 05:44:02 +0000
committerSam James <sam@gentoo.org>2022-12-06 05:44:02 +0000
commit0af9e8d12524b8ce286bcdad23a0a3d8d8ae9b40 (patch)
treecea2263b8a6dcd2ca60c6b7268863a36aa6d6891 /eclass/flag-o-matic.eclass
parentmedia-video/mpv: adjust/update USE descriptions (diff)
downloadgentoo-0af9e8d12524b8ce286bcdad23a0a3d8d8ae9b40.tar.gz
gentoo-0af9e8d12524b8ce286bcdad23a0a3d8d8ae9b40.tar.bz2
gentoo-0af9e8d12524b8ce286bcdad23a0a3d8d8ae9b40.zip
flag-o-matic.eclass: fix -Wstrict-prototypes in append-atomic-flags
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/flag-o-matic.eclass')
-rw-r--r--eclass/flag-o-matic.eclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass
index 365741a6dddf..a4e8f19e0071 100644
--- a/eclass/flag-o-matic.eclass
+++ b/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 <stdint.h>
- int main()
+ int main(void)
{
uint$((${bytesize} * 8))_t a = 0;
__atomic_add_fetch(&a, 3, __ATOMIC_RELAXED);