Re: [AD] warnings when using VC 7 (.net)

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


> I assume its casting issues, but it looked like the warnings were there
> even with explicit casting...  I'm using just the standard out-of-the-box
> settings, so maybe its on my end - but I thought someone here may wanna
> know ... if they didn't already. ;)

Can't we disable this C4312 warning with a #pragma ?

> c:\Program Files\Microsoft Visual Studio
> .NET\Vc7\include\allegro\internal\alconfig.h(282) : warning C4312: 'type
> cast' : conversion from 'unsigned long' to 'unsigned char *' of greater
> size c:\Program Files\Microsoft Visual Studio

MSVC warns that sizeof(long) may not be equal to sizeof(pointer) because,
although true for its 32-bit targets, that's wrong for its 64-bit targets.

Allegro implicitly assumes that sizeof(long) == sizeof(pointer).

--
Eric Botcazou



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