summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2014-08-25 01:06:01 +0200
committerThomas Graf <tgraf@suug.ch>2014-08-25 01:07:19 +0200
commita36136ec4d9056a32a9547c3abcc22ee7e1b3c32 (patch)
tree21a73b78eda724b0cd48337003594a4262118ce7 /src
parente3d208905d62253a402f7cb32f96f910e64d8c4f (diff)
Annotate unused variables
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Diffstat (limited to 'src')
-rw-r--r--src/in_proc.c2
-rw-r--r--src/out_curses.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/in_proc.c b/src/in_proc.c
index aead5ce..b14269b 100644
--- a/src/in_proc.c
+++ b/src/in_proc.c
@@ -101,7 +101,7 @@ static void proc_read(void)
{
struct element *e;
FILE *fd;
- char buf[512], *p, *s, *unused;
+ char buf[512], *p, *s, *unused __unused__;
int w;
if (!(fd = fopen(c_path, "r")))
diff --git a/src/out_curses.c b/src/out_curses.c
index cbd19ae..c973789 100644
--- a/src/out_curses.c
+++ b/src/out_curses.c
@@ -148,7 +148,7 @@ static void put_line(const char *fmt, ...)
{
va_list args;
char buf[2048];
- int x, y;
+ int x, y __unused__;
memset(buf, 0, sizeof(buf));
getyx(stdscr, y, x);