On Sat, 19 Jun 2004, John Cherry wrote:
drivers/video/tdfxfb.c:1104: warning: initialization discards qualifiers from pointer target type
Here's a patch for that.
The issue is that the mask member of struct fb_cursor is const, so
we shouldn't be assigning it to a non-const char*
Signed-off-by: Jesper Juhl <redacted>
--- linux-2.6.7-orig/drivers/video/tdfxfb.c 2004-06-16 07:19:02.000000000 +0200
+++ linux-2.6.7/drivers/video/tdfxfb.c 2004-06-19 14:25:16.000000000 +0200
@@ -1101,7 +1101,7 @@ static int tdfxfb_cursor(struct fb_info
*/
u8 *cursorbase = (u8 *) info->cursor.image.data;
char *bitmap = (char *)cursor->image.data;
- char *mask = cursor->mask;
+ const char *mask = cursor->mask;
int i, j, k, h = 0;
for (i = 0; i < 64; i++) {
--Jesper Juhl [off-list ref]
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND