
24 Aug
2011
24 Aug
'11
8:47 p.m.
On Wednesday, August 24, 2011 14:29:43 Kumar Gala wrote:
We get a bunch of warnings like this with gcc-4.6.x:
e1000.c:4334:3: warning: variable 'x' set but not used [-Wunused-but-set-variable]
Are we get with adding -Wunused-but-set-variable so they don't show up?
in general, i like this new warning as it tends to catch variables that are dead. i wonder why the e1000 driver has this indirection in the first place. simply calling readl() without using the return value shouldnt cause warnings or DCE ... -mike