summaryrefslogtreecommitdiff
path: root/dselect/baselist.cc
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2011-04-30 21:03:16 +0200
committerGuillem Jover <guillem@debian.org>2011-04-30 21:08:30 +0200
commit9b2cc7aa3187091bf2cbbb734fb77a7c52bec969 (patch)
tree8f8df5bb1e570a184dc96ddd0fd0ca11de61594d /dselect/baselist.cc
parent2ecaea9677e9d4307aabfbecc00a77e99a05457b (diff)
downloaddpkg-9b2cc7aa3187091bf2cbbb734fb77a7c52bec969.tar.gz
dselect: Mark ‘y’ variables as unused for getyx() and getmaxyx()
The ncurses library does not provide a way to only retrieve the ‘x’ variable, so we have to pass a dummy ‘y’ which we are not going to use, for which the compiler emits a warning.
Diffstat (limited to 'dselect/baselist.cc')
-rw-r--r--dselect/baselist.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc
index d272c109a..cb876d7ee 100644
--- a/dselect/baselist.cc
+++ b/dselect/baselist.cc
@@ -332,7 +332,8 @@ void baselist::wordwrapinfo(int offset, const char *m) {
waddnstr(infopad, m, l);
waddch(infopad,'\n'); wrapping= 0;
} else {
- int x,y;
+ int x, y DPKG_ATTR_UNUSED;
+
if (wrapping) {
getyx(infopad, y,x);
if (x+1 >= usemax) {