[PATCH] Fix test-suite fallout of default -Wreturn-type.

Jakub Jelinek jakub@redhat.com
Tue Nov 7 17:38:00 GMT 2017


On Tue, Nov 07, 2017 at 06:27:52PM +0100, Andreas Schwab wrote:
> 	* g++.dg/pr50763-3.C (evalPoint): Return a value.

http://gcc.gnu.org/ml/gcc-patches/2017-11/msg00407.html
(waiting for review)

> diff --git a/gcc/testsuite/g++.dg/pr50763-3.C b/gcc/testsuite/g++.dg/pr50763-3.C
> index b66be87b1b..33aba30406 100644
> --- a/gcc/testsuite/g++.dg/pr50763-3.C
> +++ b/gcc/testsuite/g++.dg/pr50763-3.C
> @@ -53,5 +53,5 @@ long sExt::evalPoint(const v2d & crUV, v3d & rPnt) const {
>     if (!_Dom.cop2d(crUV)) {
>        sUV = _Dom.clp2d(crUV);
>     }
> -   eval();
> +   return eval();
>  }   
> -- 
> 2.15.0
> 
> 
> -- 
> Andreas Schwab, SUSE Labs, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."

	Jakub



More information about the Gcc-patches mailing list