[EMAIL PROTECTED] (Christoph Egger) writes:

> Hi,
> 
> I just found some compiler warnings:
> 
> libggi/display/aa/
> 
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
> -I../../include     -g -O2 -D_REENTRANT -D_THREAD_SAFE -g -Wall -c mode.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -g -Wall -Wp,-MD,.deps/mode.pp -c  -fPIC -DPIC mode.c -o
> mode.lo
> mode.c: In function `GGI_aa_setmode':
> mode.c:137: warning: implicit declaration of function `memset'
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -g -Wall -Wp,-MD,.deps/visual.pp -c  -fPIC -DPIC visual.c
> -o visual.lo
> visual.c: In function `GGIopen':
> visual.c:98: warning: implicit declaration of function `GGIdlcleanup'

Ah yes, I don't have aalib installed on my laptop so that slipped
through. ;)

> libggi/display/terminfo/
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -g -O2 -D_REENTRANT
> -D_THREAD_SAFE -g -Wall -Wp,-MD,.deps/mode.pp -c  -fPIC -DPIC mode.c -o
> mode.lo
> mode.c: In function `GGI_terminfo_checkmode':
> mode.c:227: warning: `err' might be used uninitialized in this function
> 
> I have attached a patch, which fixes that. Anyone here to commit it?

Sure, nice spotting.

//Marcus
-- 
-------------------------------+------------------------------------
        Marcus Sundberg        | http://www.stacken.kth.se/~mackan
 Royal Institute of Technology |       Phone: +46 707 295404
       Stockholm, Sweden       |   E-Mail: [EMAIL PROTECTED]

Reply via email to