All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] [PATCH] Fix misleading gcc4 warning,
@ 2005-05-27  0:34 Jesse Millan
  2005-05-27  3:52 ` [KJ] [PATCH] Fix misleading gcc4 warning, addr may be used randy_dunlap
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jesse Millan @ 2005-05-27  0:34 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 166 bytes --]


This warning is a false alarm.

This patch eliminates the warning that addr may be used uninitialized in
the function it87_find. addr is not used uninitialized.





[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 502 bytes --]

Signed-off-by: Jesse Millan <jessem@cs.pdx.edu>

--- linux-2.6.12-rc5/drivers/i2c/chips/it87.c~	2005-05-26 16:35:24.852065714 -0700
+++ linux-2.6.12-rc5/drivers/i2c/chips/it87.c	2005-05-26 17:20:31.311097793 -0700
@@ -718,6 +718,10 @@ static int it87_find(int *address)
 {
 	int err = -ENODEV;

+	/* Suppress misleading GCC warning:
+	 * 'address' may be used uninitialized in this function. */
+	*address = 0;
+
 	superio_enter();
 	chip_type = superio_inw(DEVID);
 	if (chip_type != IT8712F_DEVID




[-- Attachment #3: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-06-16 22:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-27  0:34 [KJ] [PATCH] Fix misleading gcc4 warning, Jesse Millan
2005-05-27  3:52 ` [KJ] [PATCH] Fix misleading gcc4 warning, addr may be used randy_dunlap
2005-05-30  0:03 ` [KJ] [PATCH] Fix misleading gcc4 warning, Adrian Bunk
2005-05-30  0:14 ` Jesse Millan
2005-05-30  1:59 ` Adrian Bunk
2005-05-30  4:56 ` Jesse Millan
2005-05-30  8:24 ` Arnd Bergmann
2005-06-01 21:35 ` Jesse Millan
2005-06-03 18:52 ` Jesse Millan
2005-06-16 22:16 ` [KJ] [PATCH] Fix misleading gcc4 warning: (160) offset and block Jesse Millan

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.