mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
Avoid warnings in test malloc program
This commit is contained in:
10
ChangeLog
10
ChangeLog
@ -1,3 +1,7 @@
|
|||||||
|
2012-03-28 Ulrich Drepper <drepper@gmail.com>
|
||||||
|
|
||||||
|
* malloc/mallocbug.c: Avoid warnings about unused variables.
|
||||||
|
|
||||||
2012-03-28 Joseph Myers <joseph@codesourcery.com>
|
2012-03-28 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
[BZ #369]
|
[BZ #369]
|
||||||
@ -388,9 +392,9 @@
|
|||||||
|
|
||||||
2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
|
2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
* conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
|
* conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
|
||||||
* conform/run-conformtest.sh: Pass --tmpdir argument when invoking
|
* conform/run-conformtest.sh: Pass --tmpdir argument when invoking
|
||||||
conformtest.pl
|
conformtest.pl
|
||||||
|
|
||||||
2012-03-21 Joseph Myers <joseph@codesourcery.com>
|
2012-03-21 Joseph Myers <joseph@codesourcery.com>
|
||||||
|
|
||||||
|
@ -5,12 +5,15 @@
|
|||||||
|
|
||||||
#define size_t unsigned int
|
#define size_t unsigned int
|
||||||
|
|
||||||
|
/* Defined as global variables to avoid warnings about unused variables. */
|
||||||
|
char *dummy0;
|
||||||
|
char *dummy1;
|
||||||
|
char *fill_info_table1;
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char *argv[])
|
main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
char *dummy0;
|
|
||||||
char *dummy1;
|
|
||||||
char *fill_info_table1;
|
|
||||||
char *over_top;
|
char *over_top;
|
||||||
size_t over_top_size = 0x3000;
|
size_t over_top_size = 0x3000;
|
||||||
char *over_top_dup;
|
char *over_top_dup;
|
||||||
@ -19,11 +22,11 @@ main (int argc, char *argv[])
|
|||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
/* Here's what memory is supposed to look like (hex):
|
/* Here's what memory is supposed to look like (hex):
|
||||||
size contents
|
size contents
|
||||||
3000 original_info_table, later fill_info_table1
|
3000 original_info_table, later fill_info_table1
|
||||||
3fa000 dummy0
|
3fa000 dummy0
|
||||||
3fa000 dummy1
|
3fa000 dummy1
|
||||||
6000 info_table_2
|
6000 info_table_2
|
||||||
3000 over_top
|
3000 over_top
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user