This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed][darwin] Fix FAIL: g++.dg/abi/key2.C -std=gnu++* (test for excess errors)


The test g++.dg/abi/key2.C fails on darwin for trunk and the gcc8 branch due the warning

/opt/gcc/_clean/gcc/testsuite/g++.dg/abi/key2.C: In function 'int sub()':
/opt/gcc/_clean/gcc/testsuite/g++.dg/abi/key2.C:17:2: warning: no return statement in function returning non-void [-Wreturn-type]
   17 | {}

This is fixed by the following patch:

--- ../_clean/gcc/testsuite/g++.dg/abi/key2.C	2016-11-27 16:57:37.000000000 +0100
+++ gcc/testsuite/g++.dg/abi/key2.C	2018-12-28 14:49:09.000000000 +0100
@@ -14,4 +14,4 @@ class f
 } c;
 inline void f::g() {}
 int sub(void)
-{}
+{return 0;}

Committed as obvious on trunk and the gcc8 branch.

Dominique


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]