summaryrefslogtreecommitdiffstats
path: root/apps/plugins/pdbox
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-13 19:40:17 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-05-13 19:40:17 +0000
commit0a070c54202d946b37946343ea2f083fee82871a (patch)
treec80f0d4fe6a061191de65e5dee3833af4a82b1cb /apps/plugins/pdbox
parentd9098707f822686e49e2bf0c92cd90c27a86c446 (diff)
downloadrockbox-0a070c54202d946b37946343ea2f083fee82871a.tar.gz
rockbox-0a070c54202d946b37946343ea2f083fee82871a.tar.bz2
rockbox-0a070c54202d946b37946343ea2f083fee82871a.zip
Fix last known 'set but not used' warning by GCC 4.6.1.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29875 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox')
-rw-r--r--apps/plugins/pdbox/PDa/src/g_rtext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/g_rtext.c b/apps/plugins/pdbox/PDa/src/g_rtext.c
index 9c8711d01c..c2629db055 100644
--- a/apps/plugins/pdbox/PDa/src/g_rtext.c
+++ b/apps/plugins/pdbox/PDa/src/g_rtext.c
@@ -162,7 +162,9 @@ extern int sys_oldtclversion;
static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
int *indexp)
{
+#ifndef ROCKBOX
float dispx, dispy;
+#endif
char tempbuf[UPBUFSIZE], *tp = tempbuf, *bp = x->x_buf;
int outchars, inchars = x->x_bufsize, nlines = 0, ncolumns = 0,
pixwide, pixhigh;
@@ -221,8 +223,10 @@ static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
if (outchars > 1950) outchars = 1950;
if (!reportedindex)
*indexp = outchars;
+#ifndef ROCKBOX
dispx = text_xpix(x->x_text, x->x_glist);
dispy = text_ypix(x->x_text, x->x_glist);
+#endif
if (nlines < 1) nlines = 1;
if (!widthspec)
{