I agree. But when the compiler spends 30 seconds spitting out 2000 copies of the warning, it gets a little painful. :)


On Sat, Aug 14, 2010 at 2:39 PM, Wesley Smith <wesley.hoke@gmail.com> wrote:
ms compilers are much pickier about these kinds of warnings in
general.  They're pretty harmless.

On Sat, Aug 14, 2010 at 11:34 PM, Caleb Gingles <nairou@gmail.com> wrote:
> I'm actually using VS2005 (VC8.1?), and including glew.c directly into my
> project (trying to bypass link issues on other platforms I posted about some
> time back).
> I don't remember seeing these warnings when I originally started, but I
> can't find what might have changed to trigger them. On Linux, doing the same
> thing, I get no warnings.
> Here are the first several of them:
> 1>Compiling...
> 1>glew.c
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2648) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2649) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2650) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2651) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2664) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2665) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2666) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2667) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2668) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2669) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2670) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2671) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2672) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2673) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2674) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2675) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2676) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2677) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2678) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2679) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2680) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2681) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2682) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2683) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2684) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2685) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2686) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2687) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2688) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2689) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2690) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2691) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2692) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2693) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2694) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2695) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2696) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2697) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2698) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
> 1>d:\dev\libraries\glew-1.5.5\src\glew.c(2699) : warning C4244: '=' :
> conversion from 'int' to 'GLboolean', possible loss of data
>
> Caleb
>
> On Sat, Aug 14, 2010 at 11:33 AM, Nigel Stewart <nstewart@nvidia.com> wrote:
>>
>> > (As an aside, the reason I'm trying to build from the repository is in
>> > hope of there being a fix for the hundreds of "conversion from 'int' to
>> > 'GLboolean', possible loss of data" warnings I get from glew.c)
>>
>> If you wouldn't mind posting the first few dozen of the warnings
>> for GLEW 1.5.5, I'd be curious about appeasing the compiler.
>> Are these VC10-specific?
>>
>> - Nigel
>>
>> --
>> =============================================================
>> GPU Technology Conference (GTC 2010)
>> Sept. 20-23, 2010 | San Jose, CA | www.nvidia.com/gtc
>> Submissions: www.nvidia.com/object/call_for_submissions.html
>> Exhibits and Sponsorships: www.nvidia.com/object/exhibitors
>> =============================================================
>>
>>
>> -----------------------------------------------------------------------------------
>> This email message is for the sole use of the intended recipient(s) and
>> may contain
>> confidential information.  Any unauthorized review, use, disclosure or
>> distribution
>> is prohibited.  If you are not the intended recipient, please contact the
>> sender by
>> reply email and destroy all copies of the original message.
>>
>> -----------------------------------------------------------------------------------
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> glew-users mailing list
>> glew-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/glew-users
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> glew-users mailing list
> glew-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/glew-users
>
>

------------------------------------------------------------------------------
This SF.net email is sponsored by

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
glew-users mailing list
glew-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/glew-users