WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] gcc4: char * vs unsigned char *

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] gcc4: char * vs unsigned char *
From: Rik van Riel <riel@xxxxxxxxxx>
Date: Thu, 3 Mar 2005 14:38:13 -0500 (EST)
Delivery-date: Thu, 03 Mar 2005 19:40:52 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
Since xen uses -Wall -Werror, gcc4 refuses to compile areas
of the code where "char *" and "unsigned char *" are used in a
mixed fashion.

This is a problem since xen uses "unsigned char *" for many
string functions, but the x86 string implementation uses
the (standard) "char *" and the generic string implementation
uses the (non-standard?) "unsigned char *".

I'm willing to do the work to standardise on one, if the Xen
maintainers think this is worth doing.  Otherwise I'll just
get rid of the -Werror for now ...

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>