This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/3] cleanup: make allocate_value_contents static
- From: Sanimir Agovic <sanimir dot agovic at intel dot com>
- To: gdb-patches at sourceware dot org
- Cc: keven dot boell at intel dot com
- Date: Wed, 28 Aug 2013 15:52:33 +0200
- Subject: [PATCH 3/3] cleanup: make allocate_value_contents static
- Authentication-results: sourceware.org; auth=none
- References: <1377697953-6954-1-git-send-email-sanimir dot agovic at intel dot com>
The function allocate_value_contents is not used outside of value.c, thus
made it local to the compilation unit.
2013-08-28 Sanimir Agovic <sanimir.agovic@intel.com>
* value.c (allocate_value_contents): Make static.
* value.h (allocate_value_contents): Remove prototype.
Change-Id: Iacca9f820f7fab039158b44c54aa41f7956bdc7c
---
gdb/value.c | 2 +-
gdb/value.h | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/gdb/value.c b/gdb/value.c
index 7370257..42a8d2f 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -707,7 +707,7 @@ allocate_value_lazy (struct type *type)
/* Allocate the contents of VAL if it has not been allocated yet. */
-void
+static void
allocate_value_contents (struct value *val)
{
if (!val->contents)
diff --git a/gdb/value.h b/gdb/value.h
index f03cf76..98dbadf 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -593,7 +593,6 @@ extern struct value *default_read_var_value (struct symbol *var,
extern struct value *allocate_value (struct type *type);
extern struct value *allocate_value_lazy (struct type *type);
-extern void allocate_value_contents (struct value *value);
extern void value_contents_copy (struct value *dst, int dst_offset,
struct value *src, int src_offset,
int length);
--
1.7.1.1