diff mbox

[testsuite,committed] Fix warning in gcc.dg/tree-prof/comp-goto-1.c

Message ID 971aa209-cc9d-6524-7af4-827fbab9b87f@mentor.com
State New
Headers show

Commit Message

Tom de Vries June 21, 2017, 2:16 p.m. UTC
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
diff mbox

Patch

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