diff options
author | Pedro Alves <palves@redhat.com> | 2010-02-17 22:55:40 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-02-17 22:55:40 +0000 |
commit | f8a8bc2ce4705444aa44c0c364d799dc501bf991 (patch) | |
tree | 854ab6437cef3c9022740ba5dd881b1749f3f561 /gdb/testsuite/gdb.base/sizeof.c | |
parent | 6f451e5ec454cf6611b99df727ba77bf8bc71da7 (diff) | |
download | binutils-f8a8bc2ce4705444aa44c0c364d799dc501bf991.zip binutils-f8a8bc2ce4705444aa44c0c364d799dc501bf991.tar.gz binutils-f8a8bc2ce4705444aa44c0c364d799dc501bf991.tar.bz2 |
* gdb.base/shmain.c (main): Remove printf call.
* gdb.base/sizeof.c (main): Cast return of sizeof to int.
* gdb.base/unload.c (main): Make format of fprintf a string
literal. Add missing endlines to prints to stderr.
* gdb.base/watchpoint-solib.c (open_shlib): Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.base/sizeof.c')
-rw-r--r-- | gdb/testsuite/gdb.base/sizeof.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.base/sizeof.c b/gdb/testsuite/gdb.base/sizeof.c index c32231f..9c67c03 100644 --- a/gdb/testsuite/gdb.base/sizeof.c +++ b/gdb/testsuite/gdb.base/sizeof.c @@ -100,18 +100,18 @@ main () { fill_structs (); - printf ("sizeof (char) == %d\n", sizeof (char)); - printf ("sizeof (short) == %d\n", sizeof (short)); - printf ("sizeof (int) == %d\n", sizeof (int)); - printf ("sizeof (long) == %d\n", sizeof (long)); - printf ("sizeof (long long) == %d\n", sizeof (long long)); - - printf ("sizeof (void *) == %d\n", sizeof (void*)); - printf ("sizeof (void (*)(void)) == %d\n", sizeof (void (*)(void))); - - printf ("sizeof (float) == %d\n", sizeof (float)); - printf ("sizeof (double) == %d\n", sizeof (double)); - printf ("sizeof (long double) == %d\n", sizeof (long double)); + printf ("sizeof (char) == %d\n", (int) sizeof (char)); + printf ("sizeof (short) == %d\n", (int) sizeof (short)); + printf ("sizeof (int) == %d\n", (int) sizeof (int)); + printf ("sizeof (long) == %d\n", (int) sizeof (long)); + printf ("sizeof (long long) == %d\n", (int) sizeof (long long)); + + printf ("sizeof (void *) == %d\n", (int) sizeof (void*)); + printf ("sizeof (void (*)(void)) == %d\n", (int) sizeof (void (*)(void))); + + printf ("sizeof (float) == %d\n", (int) sizeof (float)); + printf ("sizeof (double) == %d\n", (int) sizeof (double)); + printf ("sizeof (long double) == %d\n", (int) sizeof (long double)); /* Signed char? */ printf ("valueof ('\\377') == %d\n", '\377'); |