From 17b9f6d6cbf853ee2c49d16828a6284587a6e494 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 29 Jul 2016 09:24:04 +0000 Subject: 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 --- test/fracviewer.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/fracviewer.cxx b/test/fracviewer.cxx index c61ef3d7f..605731d21 100644 --- a/test/fracviewer.cxx +++ b/test/fracviewer.cxx @@ -483,8 +483,9 @@ static void normalize(GLfloat v[3]) if (d == 0) fprintf(stderr, "Zero length vector in normalize\n"); - else + else { v[0] /= d; v[1] /= d; v[2] /= d; + } } /* calculates a normalized crossproduct to v1, v2 */ -- cgit v1.2.3