* [Xenomai-core] gcc-4.1 warnings in switchtest
@ 2006-06-15 9:39 Jan Kiszka
2006-06-15 11:58 ` [Xenomai-core] " Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2006-06-15 9:39 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai-core
[-- Attachment #1: Type: text/plain, Size: 469 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Xenomai-core] Re: gcc-4.1 warnings in switchtest
2006-06-15 9:39 [Xenomai-core] gcc-4.1 warnings in switchtest Jan Kiszka
@ 2006-06-15 11:58 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2006-06-15 11:58 UTC (permalink / raw)
To: Jan Kiszka; +Cc: xenomai
Jan Kiszka wrote:
> 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?
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.
--
Gilles Chanteperdrix.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-06-15 11:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-15 9:39 [Xenomai-core] gcc-4.1 warnings in switchtest Jan Kiszka
2006-06-15 11:58 ` [Xenomai-core] " Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.