This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 11/16] Drop non-prototype C function header variants: solib1.c
- From: Andreas Arnez <arnez at linux dot vnet dot ibm dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 29 Oct 2014 17:00:26 +0100
- Subject: [PATCH 11/16] Drop non-prototype C function header variants: solib1.c
- Authentication-results: sourceware.org; auth=none
- References: <1414597859-12523-1-git-send-email-arnez at linux dot vnet dot ibm dot com>
Clean up solib1.c by removing the #ifdef PROTOTYPES conditional.
gdb/testsuite/ChangeLog:
* gdb.base/solib1.c: Remove #ifdef PROTOTYPES, keep prototyped
variant.
---
gdb/testsuite/gdb.base/solib1.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/gdb/testsuite/gdb.base/solib1.c b/gdb/testsuite/gdb.base/solib1.c
index 224a93d..c7d17f4 100644
--- a/gdb/testsuite/gdb.base/solib1.c
+++ b/gdb/testsuite/gdb.base/solib1.c
@@ -3,16 +3,10 @@
the square of its integer argument.
*/
#if defined(__cplusplus) || defined(__STDCPP__)
-extern "C" int
-solib_main (int arg)
-#else
-#ifdef PROTOTYPES
-int solib_main (int arg)
-#else
-int solib_main (arg)
- int arg;
-#endif
+extern "C"
#endif
+int
+solib_main (int arg)
{
return arg*arg; /* HERE */
} /* STEP */
--
1.8.4.2