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
commitdaec4f27a7ebce8f6ba041f0499a4cc54ac2fa90 (patch)
tree2105e55af60391074cba34a00deb190c26021cb1 /eclass/toolchain-funcs.eclass
parentflag-o-matic.eclass: fix -Wstrict-prototypes in append-atomic-flags (diff)
downloadgentoo-daec4f27a7ebce8f6ba041f0499a4cc54ac2fa90.tar.gz
gentoo-daec4f27a7ebce8f6ba041f0499a4cc54ac2fa90.tar.bz2
gentoo-daec4f27a7ebce8f6ba041f0499a4cc54ac2fa90.zip
toolchain-funcs.eclass: fix -Wstrict-prototypes in linker, openmp tests
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass
index 32e446cb2368..2b52ee7ffd7c 100644
--- a/eclass/toolchain-funcs.eclass
+++ b/eclass/toolchain-funcs.eclass
@@ -466,7 +466,7 @@ tc-ld-is-gold() {
# options and not CFLAGS/CXXFLAGS.
local base="${T}/test-tc-gold"
cat <<-EOF > "${base}.c"
- int main() { return 0; }
+ int main(void) { return 0; }
EOF
out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1)
rm -f "${base}"*
@@ -499,7 +499,7 @@ tc-ld-is-lld() {
# options and not CFLAGS/CXXFLAGS.
local base="${T}/test-tc-lld"
cat <<-EOF > "${base}.c"
- int main() { return 0; }
+ int main(void) { return 0; }
EOF
out=$($(tc-getCC "$@") ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} -Wl,--version "${base}.c" -o "${base}" 2>&1)
rm -f "${base}"*
@@ -583,7 +583,7 @@ _tc-has-openmp() {
local base="${T}/test-tc-openmp"
cat <<-EOF > "${base}.c"
#include <omp.h>
- int main() {
+ int main(void) {
int nthreads, tid, ret = 0;
#pragma omp parallel private(nthreads, tid)
{