aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2010-08-13 20:47:47 +0000
committerIan Lance Taylor <ian@airs.com>2010-08-13 20:47:47 +0000
commite2054bcbe666ddc7ef69caa497864b49dbd406df (patch)
tree82cf15cb346e04aaef5ea24b66ed693c10b30093
parenta3a7127eb04fa302eb557499b7a095a941ed2965 (diff)
downloadgdb-e2054bcbe666ddc7ef69caa497864b49dbd406df.zip
gdb-e2054bcbe666ddc7ef69caa497864b49dbd406df.tar.gz
gdb-e2054bcbe666ddc7ef69caa497864b49dbd406df.tar.bz2
* testsuite/incremental_test_1.c: Add prototype to avoid warning.
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/testsuite/incremental_test_1.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index ddbeed6..9eb928d 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,7 @@
+2010-08-13 Ian Lance Taylor <iant@google.com>
+
+ * testsuite/incremental_test_1.c: Add prototype to avoid warning.
+
2010-08-12 Cary Coutant <ccoutant@google.com>
Doug Kwan <dougkwan@google.com>
diff --git a/gold/testsuite/incremental_test_1.c b/gold/testsuite/incremental_test_1.c
index 58faa0e..291caa0 100644
--- a/gold/testsuite/incremental_test_1.c
+++ b/gold/testsuite/incremental_test_1.c
@@ -1,4 +1,4 @@
-// Copyright 2009 Free Software Foundation, Inc.
+// Copyright 2009, 2010 Free Software Foundation, Inc.
// Written by Rafael Avila de Espindola <espindola@google.com>
// This file is part of gold.
@@ -20,6 +20,8 @@
int a = -1;
+extern int t1(int);
+
int t1(int b)
{
return a + b;