Messages in this thread | | | Subject | gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c | From | Lee Revell <> | Date | Sat, 16 Oct 2004 15:46:07 -0400 |
| |
I get these warnings compiling via-rhine with gcc 3.4. What is the correct way to fix this? This came up in another thread and someone mentioned that just adding a cast is not a "real fix" but just hides the problem.
drivers/net/via-rhine.c: In function `get_intr_status': drivers/net/via-rhine.c:536: warning: passing arg 1 of `readw' makes pointer from integer without a cast drivers/net/via-rhine.c:539: warning: passing arg 1 of `readb' makes pointer from integer without a cast drivers/net/via-rhine.c: In function `rhine_power_init': drivers/net/via-rhine.c:555: warning: passing arg 1 of `readb' makes pointer from integer without a cast drivers/net/via-rhine.c:555: warning: passing arg 2 of `writeb' makes pointer from integer without a cast drivers/net/via-rhine.c:558: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
etc
Lee
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |