Re: [AD] Compiler warnings (MSVC 6)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2006-12-22, Andrei Ellman <ae-a-alleg@xxxxxxxxxx> wrote:
> When building Allegro for MSVC6 under Cygwin, I get the following 
> compiler-warnings:
> 
> obj/msvc/runner.exe C:/PROGRA~1/MICROS~3/VC98/bin/cl @ -nologo 
> -DALLEGRO_STATICL
> INK  -DALLEGRO_SRC -W1 -Gd -MD -O2  -I. -I./include 
> -Foobj/msvc/alleg_s/config.o
> bj -c src/config.c
> config.c
> src/config.c(1514) : warning C4090: 'function' : different 'const' 
> qualifiers
> src/config.c(1514) : warning C4022: '_al_free' : pointer mismatch for 
> actual par
> ameter 1

Fixed by a cast, as in the 4.3 branch.

> src/config.c(473) : warning C4761: integral size mismatch in argument; 
> conversio
> n supplied

The prototypes of _al_malloc() and _al_realloc() incorrectly used int
size arguments instead of size_t.  Fixed.

Peter





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/