* [PATCH] sn2: fix warning in prominfo_proc.c
@ 2004-09-10 22:14 Jesse Barnes
0 siblings, 0 replies; only message in thread
From: Jesse Barnes @ 2004-09-10 22:14 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 324 bytes --]
The compiler has no way of knowing whether nentries will be greater than 0, so
it was generating a warning that qw might be used uninitialized. Fix it by
explicitly setting it to 0. Cc'ing Brian in case he has an internal version
he'd like to keep in sync.
Signed-off-by: Jesse Barnes <jbarnes@sgi.com>
Thanks,
Jesse
[-- Attachment #2: prominfo-warning-fix.patch --]
[-- Type: text/plain, Size: 363 bytes --]
===== arch/ia64/sn/kernel/sn2/prominfo_proc.c 1.5 vs edited =====
--- 1.5/arch/ia64/sn/kernel/sn2/prominfo_proc.c 2004-08-25 10:27:31 -07:00
+++ edited/arch/ia64/sn/kernel/sn2/prominfo_proc.c 2004-09-10 15:09:28 -07:00
@@ -222,7 +222,7 @@
{
int nentries;
int fentry;
- unsigned long qw;
+ unsigned long qw = 0;
int len;
nasid_t nasid = NASID_GET(fit);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-09-10 22:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-10 22:14 [PATCH] sn2: fix warning in prominfo_proc.c Jesse Barnes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox