Re: [AD] some warnings catched by MSVC

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


> On Friday 03 August 2001 12:32, you wrote:
>
> > Here are some warnings in colconv.c catched by MSVC
> >
> > src/misc/colconv.c(207) : warning C4550: expression evaluates to a
function
> > which is missing an argument list
> <snip>
>
> seems like stupid MSVC misunderstands that it should return a pointer to
the
> function rather than call the function and return a value. IIRC a pointer
is
> always requested if only the function name withouth '()' is encountered.
> if the generated code does the wrong thing this can be dangerous. will
> 'return &_colorconv_blit_whatever;' work properly? try that...

yes, that eliminated the warning
here is the diff

Attachment: colconv.dif
Description: video/dv



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