This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite, committed] Fix warning in gcc.dg/tree-prof/comp-goto-1.c
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 21 Jun 2017 16:16:35 +0200
- Subject: [testsuite, committed] Fix warning in gcc.dg/tree-prof/comp-goto-1.c
- Authentication-results: sourceware.org; auth=none
Hi,
this patch fixes a 'return type defaults to int' warning in test-case
gcc.dg/tree-prof/comp-goto-1.c.
Committed as obvious.
Thanks,
- Tom
Fix warning in gcc.dg/tree-prof/comp-goto-1.c
2017-06-21 Tom de Vries <tom@codesourcery.com>
* gcc.dg/tree-prof/comp-goto-1.c: Fix 'return type defaults to int'
warning.
---
gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c b/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c
index bb1d120..fe768f9 100644
--- a/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c
+++ b/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c
@@ -165,5 +165,5 @@ main ()
exit (0);
}
#else
-main(){ exit (0); }
+int main(){ exit (0); }
#endif