From 5433db459e647106ea021ef2039dfa363b2b9e6e Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Wed, 21 Jun 2017 14:14:16 +0000 Subject: [PATCH] Fix warning in gcc.dg/tree-prof/comp-goto-1.c 2017-06-21 Tom de Vries * gcc.dg/tree-prof/comp-goto-1.c: Fix 'return type defaults to int' warning. From-SVN: r249452 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index b45fc572543..c527d1cbf1c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-06-21 Tom de Vries + + * gcc.dg/tree-prof/comp-goto-1.c: Fix 'return type defaults to int' + warning. + 2017-06-21 Martin Liska * gcc.dg/tree-ssa/attr-hotcold-2.c: Update scanned patterns. 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 bb1d120c265..fe768f9a98d 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 -- 2.30.2