Fix -Wreturn-type fallout.
authorMartin Liska <mliska@suse.cz>
Mon, 6 Nov 2017 13:41:35 +0000 (14:41 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 6 Nov 2017 13:41:35 +0000 (13:41 +0000)
commit454f8b2b0c6f9645b3df6be98efe2ca520f2ce82
treeffe7d782cda90da84b0baf13883d5da72a8f3eb2
parent98910bc2b97f248d158b301575c24597fd12ab34
Fix -Wreturn-type fallout.

2017-11-06  Martin Liska  <mliska@suse.cz>

* c-c++-common/cilk-plus/AN/pr57541-2.c (foo1): Return a value
for functions with non-void return type, or change type to void,
or add -Wno-return-type for test.
(foo2): Likewise.
* c-c++-common/cilk-plus/AN/pr57541.c (foo): Likewise.
(foo1): Likewise.
* c-c++-common/cilk-plus/CK/errors.c: Likewise.
* c-c++-common/cilk-plus/CK/pr60197.c: Likewise.
* c-c++-common/cilk-plus/CK/spawn_in_return.c: Likewise.
* c-c++-common/fold-masked-cmp-1.c (test_pic): Likewise.
(test_exe): Likewise.
* c-c++-common/fold-masked-cmp-2.c (test_exe): Likewise.
* g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc (my_func): Likewise.
* g++.dg/cilk-plus/CK/pr68997.cc (fa2): Likewise.
* g++.dg/eh/sighandle.C (dosegv): Likewise.
* g++.dg/ext/vector14.C (foo): Likewise.
(main): Likewise.
* g++.dg/graphite/pr41305.C: Likewise.
* g++.dg/graphite/pr42930.C: Likewise.
* g++.dg/opt/pr46640.C (struct QBasicAtomicInt): Likewise.
(makeDir): Likewise.
* g++.dg/other/i386-8.C (foo): Likewise.
* g++.dg/pr45788.C: Likewise.
* g++.dg/pr64688.C (at_c): Likewise.
* g++.dg/pr65032.C (G::DecodeVorbis): Likewise.
* g++.dg/pr71633.C (c3::fn2): Likewise.
* g++.dg/stackprotectexplicit2.C (A): Likewise.
* g++.old-deja/g++.law/weak.C (main): Likewise.
2017-11-06  Martin Liska  <mliska@suse.cz>

* testsuite/libgomp.c++/loop-2.C: Return a value
for functions with non-void return type, or change type to void,
or add -Wno-return-type for test.
* testsuite/libgomp.c++/loop-4.C: Likewise.
* testsuite/libgomp.c++/parallel-1.C: Likewise.
* testsuite/libgomp.c++/shared-1.C: Likewise.
* testsuite/libgomp.c++/single-1.C: Likewise.
* testsuite/libgomp.c++/single-2.C: Likewise.
2017-11-06  Martin Liska  <mliska@suse.cz>

* testsuite/27_io/basic_fstream/cons/char/path.cc (main):
  Return a value for functions with non-void return type,
  or change type to void, or add -Wno-return-type for test.
* testsuite/27_io/basic_ifstream/cons/char/path.cc (main):
Likewise.
* testsuite/27_io/basic_ofstream/open/char/path.cc (main):
Likewise.

From-SVN: r254451
33 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541-2.c
gcc/testsuite/c-c++-common/cilk-plus/AN/pr57541.c
gcc/testsuite/c-c++-common/cilk-plus/CK/errors.c
gcc/testsuite/c-c++-common/cilk-plus/CK/pr60197.c
gcc/testsuite/c-c++-common/cilk-plus/CK/spawn_in_return.c
gcc/testsuite/c-c++-common/fold-masked-cmp-1.c
gcc/testsuite/c-c++-common/fold-masked-cmp-2.c
gcc/testsuite/g++.dg/cilk-plus/AN/builtin_fn_mutating_tplt.cc
gcc/testsuite/g++.dg/cilk-plus/CK/pr68997.cc
gcc/testsuite/g++.dg/eh/sighandle.C
gcc/testsuite/g++.dg/ext/vector14.C
gcc/testsuite/g++.dg/graphite/pr41305.C
gcc/testsuite/g++.dg/graphite/pr42930.C
gcc/testsuite/g++.dg/opt/pr46640.C
gcc/testsuite/g++.dg/other/i386-8.C
gcc/testsuite/g++.dg/pr45788.C
gcc/testsuite/g++.dg/pr64688.C
gcc/testsuite/g++.dg/pr65032.C
gcc/testsuite/g++.dg/pr71633.C
gcc/testsuite/g++.dg/stackprotectexplicit2.C
gcc/testsuite/g++.old-deja/g++.law/weak.C
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/loop-2.C
libgomp/testsuite/libgomp.c++/loop-4.C
libgomp/testsuite/libgomp.c++/parallel-1.C
libgomp/testsuite/libgomp.c++/shared-1.C
libgomp/testsuite/libgomp.c++/single-1.C
libgomp/testsuite/libgomp.c++/single-2.C
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/basic_fstream/cons/char/path.cc
libstdc++-v3/testsuite/27_io/basic_ifstream/cons/char/path.cc
libstdc++-v3/testsuite/27_io/basic_ofstream/open/char/path.cc