forked from len0rd/rockbox
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
This commit is contained in:
parent
d9098707f8
commit
0a070c5420
1 changed files with 4 additions and 0 deletions
|
@ -162,7 +162,9 @@ extern int sys_oldtclversion;
|
||||||
static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
|
static void rtext_senditup(t_rtext *x, int action, int *widthp, int *heightp,
|
||||||
int *indexp)
|
int *indexp)
|
||||||
{
|
{
|
||||||
|
#ifndef ROCKBOX
|
||||||
float dispx, dispy;
|
float dispx, dispy;
|
||||||
|
#endif
|
||||||
char tempbuf[UPBUFSIZE], *tp = tempbuf, *bp = x->x_buf;
|
char tempbuf[UPBUFSIZE], *tp = tempbuf, *bp = x->x_buf;
|
||||||
int outchars, inchars = x->x_bufsize, nlines = 0, ncolumns = 0,
|
int outchars, inchars = x->x_bufsize, nlines = 0, ncolumns = 0,
|
||||||
pixwide, pixhigh;
|
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 (outchars > 1950) outchars = 1950;
|
||||||
if (!reportedindex)
|
if (!reportedindex)
|
||||||
*indexp = outchars;
|
*indexp = outchars;
|
||||||
|
#ifndef ROCKBOX
|
||||||
dispx = text_xpix(x->x_text, x->x_glist);
|
dispx = text_xpix(x->x_text, x->x_glist);
|
||||||
dispy = text_ypix(x->x_text, x->x_glist);
|
dispy = text_ypix(x->x_text, x->x_glist);
|
||||||
|
#endif
|
||||||
if (nlines < 1) nlines = 1;
|
if (nlines < 1) nlines = 1;
|
||||||
if (!widthspec)
|
if (!widthspec)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue