GII compiles fine without warning (except the known LIBTOOL problem with
autoconf).
GGI does this:
color.c: In function `GGI_aa_setpalvec':
color.c:45: warning: implicit declaration of function `memcpy'
mode.c: In function `GGI_xf86dga_checkmode':
mode.c:372: warning: unused variable `ysize'
mode.c:372: warning: unused variable `xsize'
visual.c: In function `GGIopen':
visual.c:176: warning: implicit declaration of function `memcpy'
cube3d.c: In function `spawn_bg':
cube3d.c:507: warning: control reaches end of non-void function
wrap.o: In function `init_client':
/home/tharbaug/rpm/BUILD/libggi-cvs/programs/demos/wrap.c:68: the use of
`tmpnam' is dangerous, better use `mkstemp'
slimy.c: In function `main':
slimy.c:281: warning: control reaches end of non-void function
Makefile:386: warning: overriding commands for target `monitest'
Makefile:222: warning: ignoring old commands for target `monitest'
checkmode.c:497:73: warning: trigraph ??) ignored
These all look very fixable - even the problems in the demos.
GALLOC - well, is it part of the 2.0 release? If it is then there's a
bit to do with it:
galloc.c: In function `ggiGAAddMode':
galloc.c:87: warning: implicit declaration of function `memcpy'
galloc.c: In function `ggiGAClearProperties':
galloc.c:224: warning: implicit declaration of function `memset'
utils.c: In function `ggiGACompare':
utils.c:57: warning: implicit declaration of function `memcmp'
utils.c: In function `ggiGACopy':
utils.c:104: warning: implicit declaration of function `memcpy'
rm.c: In function `ggiGArm_check':
rm.c:54: warning: unused variable `best'
rm.c:54: warning: `max' might be used uninitialized in this function
funcs.c:508:2: warning: #warning Compare the advanced buffer layout here
sprite.c:346:2: warning: #warning Should we use XCreateGlyphCursor() or
XCreateFontCursor() for creating a text-cursor?
buffer.c:131:2: warning: #warning You have to convert the dots/max_div
into pixels here
buffer.c:436:2: warning: #warning You have to convert the dots/max_div
into pixels here
buffer.c:759:2: warning: #warning Should not we support all types of
dbs?
buffer.c:869:2: warning: #warning Should not we support all types of
dbs?
buffer.c:891:2: warning: #warning Check here, if swatch has same
pixelformat as the mode
buffer.c:913:2: warning: #warning Check here, if swatch has same
pixelformat as the mode
buffer.c: In function `check_buffer':
buffer.c:111: warning: implicit declaration of function `memcpy'
window.c:119:2: warning: #warning Make sure the coords are in pixels
here
window.c: In function `check_window':
window.c:110: warning: implicit declaration of function `memcpy'
frame.c: In function `check_frame':
frame.c:57: warning: implicit declaration of function `memcpy'
init.c:30:2: warning: #warning Chris -- dont bother reformatting this
code yet, it will change fast.
funcs.c:62:2: warning: #warning TODO: handle mode.frames
funcs.c: In function `adjust_tcurs_props':
funcs.c:154: warning: implicit declaration of function `memcpy'
funcs.c: In function `GALLOC_Fbdev_Set':
funcs.c:559: warning: unused variable `rc_stat'
funcs.c:556: warning: unused variable `compound'
funcs.c:554: warning: unused variable `reslist_tmp'
galloctest.c:44:2: warning: #warning This code uses some functions not
in the external API
galloctest.c:45:2: warning: #warning Expect some implicit declaration
warnings.
galloctest.c: In function `do_demo':
galloctest.c:42: warning: implicit declaration of function `memset'
galloctest.c:74: warning: implicit declaration of function `ggiGARemove'
galloctest.c:96: warning: implicit declaration of function
`ggiGACopyList'
galloctest.c:103: warning: implicit declaration of function
`ggiGAAppendList'
On 10 Jul 2001 09:20:00 +0200, Christoph Egger wrote:
>
> On 9 Jul 2001, Thayne Harbaugh wrote:
>
> > Anyone want to turn on -Wall and -Werror and chase bad stuff? I just
> > saw a "control reaches end of non-void function" warning go scrolling by
> > (quite a serious warning).
>
> In which lib? file? line-number?
>
> CU,
>
> Christoph Egger
> E-Mail: [EMAIL PROTECTED]
--
Thayne Harbaugh