#34 glewInit assignment in conditional warning

1.9.0
closed
None
6
2012-09-18
2011-12-08
Anonymous
No

Here is a tiny patch that avoids the warning in glewInit about making an assignment inside a conditional. I get the warning with Visual Studio 2010 at max warnings. Patch is based off version 1.7.0.

Original: if ( (r = glewContextInit()) ) return r;
Patched: if ( (r = glewContextInit()) != 0 ) return r;

Discussion

  • Nobody/Anonymous

    Patch avoiding an assignment in conditional warning

     
  • Nigel Stewart

    Nigel Stewart - 2012-05-04

    Thanks for the patch, fixed.

     
  • Nigel Stewart

    Nigel Stewart - 2012-09-18
    • assigned_to: Nigel Stewart
    • milestone: --> 1.9.0

    • status: pending --> closed

     
  • Nigel Stewart

    Nigel Stewart - 2012-09-18

    Closing.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks