mirror of
https://github.com/fltk/fltk.git
synced 2026-05-30 21:25:30 +08:00
Removed unused variable last_y to prevent this warning under mingw:
Compiling Fl_Text_Display.cxx...
Fl_Text_Display.cxx: In member function 'void Fl_Text_Display::draw_line_numbers(bool)':
Fl_Text_Display.cxx:2875:9: warning: variable 'last_y' set but not used [-Wunused-but-set-variable]
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10223 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -2872,8 +2872,6 @@ void Fl_Text_Display::draw_line_numbers(bool /*clearAll*/) {
|
|||||||
Y = y();
|
Y = y();
|
||||||
line = get_absolute_top_line_number();
|
line = get_absolute_top_line_number();
|
||||||
|
|
||||||
int last_y = y();
|
|
||||||
|
|
||||||
// set font color for line numbers
|
// set font color for line numbers
|
||||||
fl_color(linenumber_fgcolor());
|
fl_color(linenumber_fgcolor());
|
||||||
for (visLine=0; visLine < mNVisibleLines; visLine++) {
|
for (visLine=0; visLine < mNVisibleLines; visLine++) {
|
||||||
@@ -2886,7 +2884,6 @@ void Fl_Text_Display::draw_line_numbers(bool /*clearAll*/) {
|
|||||||
hh = lineHeight;
|
hh = lineHeight;
|
||||||
fl_draw(lineNumString, xx, yy, ww, hh, linenumber_align(), 0, 0);
|
fl_draw(lineNumString, xx, yy, ww, hh, linenumber_align(), 0, 0);
|
||||||
//DEBUG fl_rect(xx, yy, ww, hh);
|
//DEBUG fl_rect(xx, yy, ww, hh);
|
||||||
last_y = Y;
|
|
||||||
line++;
|
line++;
|
||||||
} else {
|
} else {
|
||||||
if (visLine == 0) line++;
|
if (visLine == 0) line++;
|
||||||
|
|||||||
Reference in New Issue
Block a user