Re: Suggestion

2005-11-30 Thread Christian . Iseli
[EMAIL PROTECTED] said: > Or these messages should going (by an option) to the stdout rather than > stderr, so i can write a parser (gcc a.c | myparser) to convert the > messages. Ah, but that option does exist already: gcc a.c 2>&1 | myparser :-) Christi

warning: '' may be used uninitialized in this function

2006-01-12 Thread Christian . Iseli
Hi all, I am somewhat confused about the status of the "may be used uninitialized" warning... Consider: --- testit.c --- #include static void testit(int *a, int cnt) { struct {int score; int d;} best; int i; best.score = 0; for (i = 0; i < cnt; i++) if (a[i] > best.score) { b

Re: warning: '' may be used uninitialized in this function

2006-01-12 Thread Christian . Iseli
Ok, a slightly simpler testcase still shows the warning: --- testit.c --- #include static void testit(unsigned int *a, unsigned int cnt) { struct {unsigned int score; unsigned int d;} best; unsigned int i; best.score = 0; for (i = 0; i < cnt; i++) if (a[i] > best.score) { best.

Re: warning: '' may be used uninitialized in this function

2006-01-12 Thread Christian . Iseli
[EMAIL PROTECTED] said: > Sub-optimal? Yes, there is one more instruction to set the variable to 0... --- testit_1.s 2006-01-12 16:38:06.13376 +0100 +++ testit.s2006-01-12 16:57:04.844986000 +0100 @@ -16,6 +16,7 @@ testl %ebx, %ebx je .L9 movl$0, %edx

Re: 'xxx' may be used uninitialized in this function

2006-08-10 Thread Christian Iseli
On Wed, 9 Aug 2006 09:09:56 -0700, Bruce Korb wrote: > const char * pOptTitle; const char * pOptTitle = pOptTitle; is another possibility to shut the warning... without adding any generated code... There was another discussion about this issue here: http://gcc.gnu.org/ml/gcc/2006-01/msg00274

Re: Linux 2.4.4-ac3, asm problem in asm-i386/rwsem.h using gcc 3.0 CVS

2001-05-03 Thread Christian Iseli
Hi, [EMAIL PROTECTED] said: > I believe we'd need at least the source code of this function to be > able to duplicate the problem with GCC. Would you please submit a > full bug report, following the guidelines at http://gcc.gnu.org/ > bugs.html>? Thanks in advance, Ok, I filed a bug report to