Author: osiejka
Date: Sun May 15 15:51:26 2011
New Revision: 51767
URL:
http://svn.reactos.org/svn/reactos?rev=51767&view=rev
Log:
[GLU32]
- Properly fix compiler warning, by initializing the integer array with zeros. Remove GNUC
#ifdef, introduced in rev 42970. Patch by Markus (thechief at praise dash land dot de)
See issue #6179 for more details.
Modified:
trunk/reactos/dll/win32/glu32/libnurbs/internals/intersect.cc
Modified: trunk/reactos/dll/win32/glu32/libnurbs/internals/intersect.cc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/glu32/libnurbs/i…
==============================================================================
--- trunk/reactos/dll/win32/glu32/libnurbs/internals/intersect.cc [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/glu32/libnurbs/internals/intersect.cc [iso-8859-1] Sun May 15
15:51:26 2011
@@ -178,13 +178,7 @@
Arc_ptr jarc1;
TrimVertex* v = jarc->pwlArc->pts;
- int loc[3];
-
-#if defined(__GNUC__) && \
- (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ == 40400)
- /* Silence incorrect GCC 4.4.0 warnings */
- loc[0] = loc[1] = loc[2] = 0;
-#endif
+ int loc[3] = {0,0,0};
switch( pwlarc_intersect( jarc->pwlArc, param, value, dir, loc ) ) {