diff options
author | Sam James <sam@gentoo.org> | 2022-12-06 05:44:02 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-12-06 05:44:02 +0000 |
commit | daec4f27a7ebce8f6ba041f0499a4cc54ac2fa90 (patch) | |
tree | 2105e55af60391074cba34a00deb190c26021cb1 /eclass | |
parent | flag-o-matic.eclass: fix -Wstrict-prototypes in append-atomic-flags (diff) | |
download | gentoo-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')
-rw-r--r-- | eclass/toolchain-funcs.eclass | 6 |
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) { |