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:
@ -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]
|
||||||
|
@ -5,12 +5,15 @@
|
|||||||
|
|
||||||
#define size_t unsigned int
|
#define size_t unsigned int
|
||||||
|
|
||||||
int
|
/* Defined as global variables to avoid warnings about unused variables. */
|
||||||
main (int argc, char *argv[])
|
|
||||||
{
|
|
||||||
char *dummy0;
|
char *dummy0;
|
||||||
char *dummy1;
|
char *dummy1;
|
||||||
char *fill_info_table1;
|
char *fill_info_table1;
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
main (int argc, char *argv[])
|
||||||
|
{
|
||||||
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;
|
||||||
|
Reference in New Issue
Block a user