Skip to contentSkip to conversation

gcc 3.4 "makes pointer from integer without a cast" warnings in via-rhine-c

DISCUSSION Lee Revell 2 participants 2 messages Oct 16, 2004 – Oct 18, 2004

lore
Share & tools
lore

Lee Revell

author
#0 lore raw

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

#1 lore raw

hi :)

Quoted 4 lines · Lee Revell

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.

look at include/asm-generic/iomap.h

Signature · 1 line
Martin Waitz