Fix all these waring by initaielize them where they are declare
libutil/quad.c: In function `gluPartialDisk':
libutil/quad.c:451: warning: 'texLow' might be used uninitialized in
this function
libutil/quad.c:451: warning: 'texHigh' might be used uninitialized in
this function
libutil/quad.c: In function `gluSphere':
libutil/quad.c:720: warning: 'sintemp2' might be used uninitialized in
this function
libutil/quad.c:720: warning: 'sintemp3' might be used uninitialized in
this function
libutil/quad.c:720: warning: 'sintemp4' might be used uninitialized in
this function
libutil/quad.c:721: warning: 'costemp2' might be used uninitialized in
this function
libutil/quad.c:721: warning: 'costemp3' might be used uninitialized in
this function
libutil/quad.c:721: warning: 'costemp4' might be used uninitialized in
this function
Modified: trunk/reactos/lib/glu32/libutil/quad.c
_____
Modified: trunk/reactos/lib/glu32/libutil/quad.c
--- trunk/reactos/lib/glu32/libutil/quad.c 2005-04-28 13:19:23 UTC
(rev 14841)
+++ trunk/reactos/lib/glu32/libutil/quad.c 2005-04-28 13:38:30 UTC
(rev 14842)
@@ -448,7 +448,7 @@
GLfloat sintemp, costemp;
GLfloat deltaRadius;
GLfloat radiusLow, radiusHigh;
- GLfloat texLow, texHigh;
+ GLfloat texLow = 0, texHigh = 0;
GLfloat angleOffset;
GLint slices2;
GLint finish;
@@ -717,8 +717,8 @@
GLfloat cosCache3b[CACHE_SIZE];
GLfloat angle;
GLfloat zLow, zHigh;
- GLfloat sintemp1, sintemp2, sintemp3, sintemp4;
- GLfloat costemp1, costemp2, costemp3, costemp4;
+ GLfloat sintemp1, sintemp2=0, sintemp3=0, sintemp4=0;
+ GLfloat costemp1, costemp2=0, costemp3=0, costemp4=0;
GLboolean needCache2, needCache3;
GLint start, finish;
fix waring with insiate iter
libutil/mipmap.c: In function `gluScaleImage':
libutil/mipmap.c:5105: warning: 'iter' might be used uninitialized in
this function
remve outindex it is not being use at all
libutil/mipmap.c: In function `scaleInternalPackedPixel':
libutil/mipmap.c:5990: warning: 'outindex' might be used uninitialized
in this function
Modified: trunk/reactos/lib/glu32/libutil/mipmap.c
_____
Modified: trunk/reactos/lib/glu32/libutil/mipmap.c
--- trunk/reactos/lib/glu32/libutil/mipmap.c 2005-04-28 03:37:01 UTC
(rev 14839)
+++ trunk/reactos/lib/glu32/libutil/mipmap.c 2005-04-28 13:01:57 UTC
(rev 14840)
@@ -4862,6 +4862,7 @@
if (padding) {
rowsize += psm->unpack_alignment - padding;
}
+
start = (const GLubyte *) userdata + psm->unpack_skip_rows *
rowsize +
(psm->unpack_skip_pixels * components / 8);
elements_per_line = width * components;
@@ -5102,7 +5103,7 @@
GLint group_size;
GLint elements_per_line;
GLubyte *start;
- GLubyte *iter;
+ GLubyte *iter = NULL;
const GLushort *iter2;
GLint i, j, k;
GLint myswap_bytes;
@@ -5987,7 +5988,7 @@
int i,j,k,xindex;
const char *temp, *temp0;
- int outindex;
+ int outindex = 0;
int lowx_int, highx_int, lowy_int, highy_int;
float x_percent, y_percent;
Minor changes into a way locales are get and listed
Modified: trunk/reactos/lib/cpl/intl/locale.c
_____
Modified: trunk/reactos/lib/cpl/intl/locale.c
--- trunk/reactos/lib/cpl/intl/locale.c 2005-04-26 20:39:02 UTC (rev
14823)
+++ trunk/reactos/lib/cpl/intl/locale.c 2005-04-26 21:21:32 UTC (rev
14824)
@@ -47,7 +47,8 @@
TCHAR lang[255];
int index;
- swscanf(lpLocale, L"%lx", &lcid); // maybe use wcstoul?
+ //swscanf(lpLocale, L"%lx", &lcid); // maybe use wcstoul?
+ lcid = wcstoul(lpLocale, NULL, 16);
GetLocaleInfo(lcid, LOCALE_SLANGUAGE, lang, sizeof(lang));
@@ -74,7 +75,7 @@
EnumSystemLocalesW(LocalesEnumProc, LCID_SUPPORTED);
// Select current locale
- GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SLANGUAGE, langSel,
sizeof(langSel)); // or should it be System?
+ GetLocaleInfo(GetUserDefaultLCID(), LOCALE_SLANGUAGE, langSel,
sizeof(langSel)); // or should it be System and not user?
SendMessageW(hList,
CB_SELECTSTRING,