public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] bug in glibc?
@ 2001-06-12  5:22 99% Mikael Hallendal
  0 siblings, 0 replies; 1+ results
From: Mikael Hallendal @ 2001-06-12  5:22 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 178 bytes --]

Hi!

In /usr/include/bits/string2.h there is a ?bug? that causes a lot of
warnings. This is not in the same file in Debian (have they patched
it?)

This patch fixes the problem:

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: glibc.patch --]
[-- Type: text/x-patch, Size: 1229 bytes --]

--- string2.h.old	Tue Jun 12 12:52:46 2001
+++ string2.h	Tue Jun 12 12:53:51 2001
@@ -415,7 +415,7 @@
       break;
     case 3:
       __u->__usi = __src0_2;
-      __u = __extension__ ((void *) __u + 2);
+      __u = __extension__ (void *)((char *) __u + 2);
       __u->__uc = '\0';
       break;
     case 4:
@@ -423,24 +423,24 @@
       break;
     case 5:
       __u->__ui = __src0_4;
-      __u = __extension__ ((void *) __u + 4);
+      __u = __extension__ (void *)((char *) __u + 4);
       __u->__uc = '\0';
       break;
     case 6:
       __u->__ui = __src0_4;
-      __u = __extension__ ((void *) __u + 4);
+      __u = __extension__ (void *)((char *) __u + 4);
       __u->__usi = __src4_2;
       break;
     case 7:
       __u->__ui = __src0_4;
-      __u = __extension__ ((void *) __u + 4);
+      __u = __extension__ (void *)((char *) __u + 4);
       __u->__usi = __src4_2;
-      __u = __extension__ ((void *) __u + 2);
+      __u = __extension__ (void *)((char *) __u + 2);
       __u->__uc = '\0';
       break;
     case 8:
       __u->__ui = __src0_4;
-      __u = __extension__ ((void *) __u + 4);
+      __u = __extension__ (void *)((char *) __u + 4);
       __u->__ui = __src4_4;
       break;
     }

[-- Attachment #3: Type: text/plain, Size: 27 bytes --]


Regards,
Mikael Hallendal

^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2001-06-12  5:22 99% [gentoo-dev] bug in glibc? Mikael Hallendal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox