Skip to contentSkip to conversation

gcc-4.1 warnings in switchtest

Xenomai-core Jan Kiszka 2 participants 2 messages Jun 15, 2006

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi Gilles,

I'm seeing this with gcc-4.1:

src/testsuite/switchtest/switch.c: In function 'main':
src/testsuite/switchtest/switch.c:620: warning: 'params.swt.flags' is used uninitialized in this function src/testsuite/switchtest/switch.c:620: warning: 'params.swt.index' is used uninitialized in this function src/testsuite/switchtest/switch.c:620: warning: 'params.thread' is used uninitialized in this function

Real issues or just finickiness?

Jan

#1 lore raw
Quoted 12 lines · Jan Kiszka

Hi Gilles,

I'm seeing this with gcc-4.1:

src/testsuite/switchtest/switch.c: In function 'main':
src/testsuite/switchtest/switch.c:620: warning: 'params.swt.flags' is used uninitialized in this function src/testsuite/switchtest/switch.c:620: warning: 'params.swt.index' is used uninitialized in this function src/testsuite/switchtest/switch.c:620: warning: 'params.thread' is used uninitialized in this function

Quoted 1 line

Real issues or just finickiness?

No, the compiler is right, but it has no consequence, the values of the swt structure are overriden by an ioctl later on. Anyway, I can set all this to zero to please the compiler.

Signature · 1 line
					    Gilles Chanteperdrix.