This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
["Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at>] Bug#38311: <string.h> is not -Wconversion warning free
- To: libc-alpha Mailinglist <libc-alpha@sourceware.cygnus.com>
- Subject: ["Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at>] Bug#38311: <string.h> is not -Wconversion warning free
- From: Andreas Jaeger <aj@arthur.rhein-neckar.de>
- Date: 26 May 1999 07:03:26 +0200
- Cc: "Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at>
This tiny program gets some warnings from <bits/string2.h> if compiled
with -Wconversion:
#include <string.h>
int main(void)
{
return 0;
}
$ gcc -Wconversion -Werror tst.c -O2
cc1: warnings being treated as errors
/usr/include/bits/string2.h: In function `__strsep_g':
In file included from /usr/include/string.h:346,
from tst.c:1:
/usr/include/bits/string2.h:1091: warning: passing arg 2 of `__strpbrk_c2' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 3 of `__strpbrk_c2' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 2 of `__strpbrk_c3' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 3 of `__strpbrk_c3' with different width due to prototype
/usr/include/bits/string2.h:1091: warning: passing arg 4 of `__strpbrk_c3' with different width due to prototype
I don't understand the warning at the moment. Anybody else with a
fix?
Andreas
P.S. The report comes from Debian.
- Subject: Bug#38311: <string.h> is not -Wconversion warning free
- From: "Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at>
- Date: Wed May 26 06:59:29 1999
Topics:
Bug#38311: <string.h> is not -Wconversion warning free
----------------------------------------------------------------------
Date: Tue, 25 May 1999 23:10:37 +0200 (CEST)
From: "Markus F.X.J. Oberhumer" <markus.oberhumer@jk.uni-linz.ac.at>
To: submit@bugs.debian.org
Subject: Bug#38311: <string.h> is not -Wconversion warning free
Message-ID: <XFMail.990525231037.markus.oberhumer@jk.uni-linz.ac.at>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Package: libc6-dev
Version: 2.1.1-6
libc6 2.1 breaks program which are compiled with "-O2 -Wconversion -Werror"
because <string.h> is not warning free any longer.
The #define of strpbrk in line ~890 in /usr/include/bits/string2.h
is causing one of those warnings.
Probably an upstream problem.
- -
To UNSUBSCRIBE, email to debian-glibc-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
------------------------------
End of forwardGPAB0B Digest
***************************
--
Andreas Jaeger aj@arthur.rhein-neckar.de jaeger@informatik.uni-kl.de
for pgp-key finger ajaeger@aixd1.rhrk.uni-kl.de