summary refs log tree commit diff
path: root/malloc/mallocbug.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-03-28 13:05:11 -0400
committerUlrich Drepper <drepper@gmail.com>2012-03-28 13:05:11 -0400
commit05f3d1f6c6ae403180259b84a5af0061a62ffb98 (patch)
treef0348d6ba77cd5c9c4e3786a5875f94ad01bb616 /malloc/mallocbug.c
parentd6270972f79fe89a96fa7a3909991dad2e317033 (diff)
downloadglibc-05f3d1f6c6ae403180259b84a5af0061a62ffb98.tar.gz
glibc-05f3d1f6c6ae403180259b84a5af0061a62ffb98.tar.xz
glibc-05f3d1f6c6ae403180259b84a5af0061a62ffb98.zip
Avoid warnings in test malloc program
Diffstat (limited to 'malloc/mallocbug.c')
-rw-r--r--malloc/mallocbug.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/malloc/mallocbug.c b/malloc/mallocbug.c
index 84a6387954..fc607aed34 100644
--- a/malloc/mallocbug.c
+++ b/malloc/mallocbug.c
@@ -5,12 +5,15 @@
 
 #define size_t unsigned int
 
+/* Defined as global variables to avoid warnings about unused variables.  */
+char *dummy0;
+char *dummy1;
+char *fill_info_table1;
+
+
 int
 main (int argc, char *argv[])
 {
-  char *dummy0;
-  char *dummy1;
-  char *fill_info_table1;
   char *over_top;
   size_t over_top_size = 0x3000;
   char *over_top_dup;
@@ -19,11 +22,11 @@ main (int argc, char *argv[])
   size_t i;
 
   /* Here's what memory is supposed to look like (hex):
-        size  contents
-        3000  original_info_table, later fill_info_table1
+	size  contents
+	3000  original_info_table, later fill_info_table1
       3fa000  dummy0
       3fa000  dummy1
-        6000  info_table_2
+	6000  info_table_2
 	3000  over_top
 
 	*/