aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorBrian Norris <[email protected]>2015-02-18 02:18:36 +0000
committerZhang Rui <[email protected]>2015-02-28 05:52:48 +0000
commit986ffe0384c38606b94947fad04e5deacb515408 (patch)
tree9d8bacd9a76e8699c59532378d760f8166ca5d45 /drivers/net/xen-netback/interface.c
parenttools/thermal: tmon: use pkg-config to determine library dependencies (diff)
downloadkernel-986ffe0384c38606b94947fad04e5deacb515408.tar.gz
kernel-986ffe0384c38606b94947fad04e5deacb515408.zip
tools/thermal: tmon: silence 'set but not used' warnings
gcc complains about the 'cols' variable being unused. This is unavoidable, given the ncurses getmaxyx() macro-based API, which wants to assign to a variable directly, even when we're not going to use it. Warning: gcc -O1 -Wall -Wshadow -W -Wformat -Wimplicit-function-declaration -Wimplicit-int -fstack-protector -D VERSION=\"1.0\" -c -o tui.o tui.c tui.c: In function ‘show_dialogue’: tui.c:288:12: warning: variable ‘cols’ set but not used [-Wunused-but-set-variable] int rows, cols; ^ So, add a hack to get rid of that warning. Signed-off-by: Brian Norris <[email protected]> Acked-by: Jacob Pan <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions