This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/3] cleanup: make allocate_value_contents static


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]