This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch committed] Add prototype to avoid warning
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Fri, 13 Aug 2010 13:48:49 -0700
- Subject: [gold patch committed] Add prototype to avoid warning
I committed this patch to add a prototype to a test case to avoid a
warning from -Wmissing-prototypes when compiling the test case.
Ian
2010-08-13 Ian Lance Taylor <iant@google.com>
* testsuite/incremental_test_1.c: Add prototype to avoid warning.
Index: testsuite/incremental_test_1.c
===================================================================
RCS file: /cvs/src/src/gold/testsuite/incremental_test_1.c,v
retrieving revision 1.2
diff -u -r1.2 incremental_test_1.c
--- testsuite/incremental_test_1.c 12 Aug 2010 22:18:14 -0000 1.2
+++ testsuite/incremental_test_1.c 13 Aug 2010 20:47:19 -0000
@@ -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;