Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Commit

Permalink
Add some "#ifdef OPTIMISE_SCROLL" scar tissue to placate GCC 4.6
Browse files Browse the repository at this point in the history
-Wunused-but-set-variable.

[originally from svn r9112]
  • Loading branch information
jtn20 committed Mar 1, 2011
1 parent 5eb70af commit d5790e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terminal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1889,13 +1889,18 @@ static void check_selection(Terminal *term, pos from, pos to)
static void scroll(Terminal *term, int topline, int botline, int lines, int sb)
{
termline *line;
int i, seltop, olddisptop, shift;
int i, seltop;
#ifdef OPTIMISE_SCROLL
int olddisptop, shift;
#endif /* OPTIMISE_SCROLL */

if (topline != 0 || term->alt_which != 0)
sb = FALSE;

#ifdef OPTIMISE_SCROLL
olddisptop = term->disptop;
shift = lines;
#endif /* OPTIMISE_SCROLL */
if (lines < 0) {
while (lines < 0) {
line = delpos234(term->screen, botline);
Expand Down

0 comments on commit d5790e1

Please sign in to comment.