summaryrefslogtreecommitdiff
path: root/src/Fl_Clock.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-07-29 09:24:04 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-07-29 09:24:04 +0000
commit17b9f6d6cbf853ee2c49d16828a6284587a6e494 (patch)
treeaf1f569de7633011bd848364459957fb8c1680ac /src/Fl_Clock.cxx
parenta633de6461f5f494d105c957d6efd43dadb193d4 (diff)
Fix compiler warnings (gcc 6.1).
Some of these warnings were benign (code formatting), but one of them showed a potential bug (zero divide in test/fraciewer.cxx). Fixed warnings: 1 this 'while' clause does not guard... [-Wmisleading-indentation] 1 this 'for' clause does not guard... [-Wmisleading-indentation] 1 this 'else' clause does not guard... [-Wmisleading-indentation] git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11850 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Clock.cxx')
-rw-r--r--src/Fl_Clock.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/Fl_Clock.cxx b/src/Fl_Clock.cxx
index 8882fdf2d..46b326181 100644
--- a/src/Fl_Clock.cxx
+++ b/src/Fl_Clock.cxx
@@ -35,10 +35,14 @@ static void drawhand(double ang,const float v[][2],Fl_Color fill,Fl_Color line)
{
fl_push_matrix();
fl_rotate(ang);
- fl_color(fill); fl_begin_polygon();
- int i; for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]); fl_end_polygon();
- fl_color(line); fl_begin_loop();
- for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]); fl_end_loop();
+ fl_color(fill);
+ fl_begin_polygon();
+ int i; for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]);
+ fl_end_polygon();
+ fl_color(line);
+ fl_begin_loop();
+ for (i=0; i<4; i++) fl_vertex(v[i][0],v[i][1]);
+ fl_end_loop();
fl_pop_matrix();
}