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

Andreas Schwab schwab@suse.de
Tue Nov 7 17:33:00 GMT 2017


	* g++.dg/pr50763-3.C (evalPoint): Return a value.

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."



More information about the Gcc-patches mailing list