From: Miroslav Lichvar Date: Mon, 25 Mar 2013 14:03:26 +0000 (+0100) Subject: remove unused variables in test code X-Git-Tag: r0-52-15~1 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=4fb7e1084e9dc04d9f23ff0c2023733bb4599efe;p=thirdparty%2Fnewt.git remove unused variables in test code --- diff --git a/test.c b/test.c index 03ea040..5a6958c 100644 --- a/test.c +++ b/test.c @@ -34,7 +34,7 @@ void helpCallback(newtComponent co, void * tag) { int main(void) { newtComponent b1, b2, r1, r2, r3, e2, e3, l1, l2, l3, scale; - newtComponent lb, t, rsf, answer, timeLabel; + newtComponent lb, t, rsf, timeLabel; newtComponent cs[10]; newtComponent f, chklist, e1; struct callbackInfo cbis[3]; @@ -129,7 +129,6 @@ int main(void) { if (es.reason == NEWT_EXIT_COMPONENT && es.u.co == b2) { newtScaleSet(scale, atoi(scaleVal)); newtRefresh(); - answer = NULL; } else if (es.reason == NEWT_EXIT_TIMER) { spinState++; if (!*spinState) spinState = spinner; diff --git a/testgrid.c b/testgrid.c index a2aa3d2..7cc9dd7 100644 --- a/testgrid.c +++ b/testgrid.c @@ -7,7 +7,7 @@ int main(void) { newtComponent b1, b2, b3, b4; - newtComponent answer, f, t; + newtComponent f, t; newtGrid grid, subgrid; char * flowedText; int textWidth, textHeight, rc, i; @@ -45,7 +45,7 @@ int main(void) { newtGridWrappedWindow(grid, "first window"); newtGridFree(grid, 1); - answer = newtRunForm(f); + newtRunForm(f); newtFormDestroy(f); newtPopWindow(); @@ -79,7 +79,7 @@ int main(void) { f = newtForm(NULL, NULL, 0); newtFormAddComponents(f, b1, t, b2, NULL); - answer = newtRunForm(f); + newtRunForm(f); newtPopWindow(); newtFormDestroy(f); diff --git a/testtree.c b/testtree.c index 7f7e7a2..0ae65c5 100644 --- a/testtree.c +++ b/testtree.c @@ -10,7 +10,6 @@ int main(void) { newtComponent checktree; newtComponent button; newtComponent form; - newtComponent answer; const void **result, **ptr; int numselected, i, j; int * list; @@ -104,7 +103,7 @@ int main(void) { form = newtForm(NULL, NULL, 0); newtFormAddComponents(form, checktree, button, NULL); - answer = newtRunForm(form); + newtRunForm(form); newtFinished();