Some warnings at tdfxfb.c

David Gómez (davidge@jazzfree.com)
Sat, 26 May 2001 21:13:25 +0200 (CEST)


This is on kernel 2.4.5. It's look like a long time has passed since this
driver was modified. Haven't tested if works, but things like using char
*name in tdfxb_init without initializing needs some fix. Is enough to do a
kmalloc to get some free space?

gcc -D__KERNEL__ -I/usr/src/linux-2.4.5/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -fno-strict-aliasing -pipe
-mpreferred-stack-boundary=2 -march=i686 -DMODULE -c -o tdfxfb.o
tdfxfb.c
tdfxfb.c: In function `tdfxfb_init':
tdfxfb.c:1895: warning: `name' might be used uninitialized in this
function
tdfxfb.c: In function `tdfxfb_setcolreg':
tdfxfb.c:2215: warning: unused variable `rgbcol'
tdfxfb.c: At top level:
tdfxfb.c:1038: warning: `tdfx_cfb8_putc' defined but not used
tdfxfb.c:1067: warning: `tdfx_cfb8_putcs' defined but not used
tdfxfb.c:1097: warning: `tdfx_cfb8_clear' defined but not used

David Gómez

"The question of whether computers can think is just like the question of
whether submarines can swim." -- Edsger W. Dijkstra

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/