From: Andreas Jaeger <aj@suse.de>
To: GNU libc hackers <libc-hacker@sources.redhat.com>
Subject: Fix warnings in testsuite
Date: Wed, 25 Jun 2003 11:09:00 -0000 [thread overview]
Message-ID: <hon0g6a056.fsf@byrd.suse.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 2306 bytes --]
The appended patch fixes a number of problems in the testsuite. I've
commited the patch after testing on x86-64,
Andreas
2003-06-25 Andreas Jaeger <aj@suse.de>
* posix/transbug.c: Include <string.h> for memset and strlen
declarations.
* stdio-common/tst-sprintf.c: Include <stdlib.h> for free declaration.
* stdlib/tst-strtod.c (main): Pass long double value.
* test-skeleton.c: Include <time.h> for nanosleep declaration.
============================================================
Index: posix/transbug.c
--- posix/transbug.c 12 Jun 2003 18:11:16 -0000 1.2
+++ posix/transbug.c 25 Jun 2003 10:56:11 -0000
@@ -5,6 +5,7 @@
#include <regex.h>
#include <stdlib.h>
#include <unistd.h>
+#include <string.h>
/* lowercase chars mapped to uppercase */
static const char casetable[] = {
============================================================
Index: stdio-common/tst-sprintf.c
--- stdio-common/tst-sprintf.c 27 May 2003 07:39:34 -0000 1.2
+++ stdio-common/tst-sprintf.c 25 Jun 2003 10:56:11 -0000
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
============================================================
Index: stdlib/tst-strtod.c
--- stdlib/tst-strtod.c 20 Mar 2003 01:06:11 -0000 1.23
+++ stdlib/tst-strtod.c 25 Jun 2003 10:56:11 -0000
@@ -153,7 +153,7 @@ main (int argc, char ** argv)
if (strtold (input2, NULL) != +1.000000000116415321826934814453125)
{
printf ("input2: %La != %La\n", strtold (input2, NULL),
- +1.000000000116415321826934814453125);
+ +1.000000000116415321826934814453125L);
status = 1;
}
============================================================
Index: test-skeleton.c
--- test-skeleton.c 25 Jun 2003 07:35:31 -0000 1.25
+++ test-skeleton.c 25 Jun 2003 10:56:11 -0000
@@ -29,6 +29,7 @@
#include <sys/resource.h>
#include <sys/wait.h>
#include <sys/param.h>
+#include <time.h>
/* The test function is normally called `do_test' and it is called
with argc and argv as the arguments. We nevertheless provide the
--
Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
SuSE Linux AG, Deutschherrnstr. 15-19, 90429 Nürnberg, Germany
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next reply other threads:[~2003-06-25 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-25 11:09 Andreas Jaeger [this message]
2003-06-25 12:19 ` Jakub Jelinek
2003-06-25 15:15 ` Andreas Jaeger
2003-06-25 12:22 ` Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hon0g6a056.fsf@byrd.suse.de \
--to=aj@suse.de \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).