Skip to content

Commit 4d86bcb

Browse files
committed
Fix warning -Wunused-but-set-variable
include/osg/Plane:244:17: warning: variable 'noOn' set but not used [-Wunused-but-set-variable] int noOn = 0; ^ include/osg/Plane:273:17: warning: variable 'noOn' set but not used [-Wunused-but-set-variable] int noOn = 0; ^
1 parent dc09d74 commit 4d86bcb

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

include/osg/Plane

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,15 +241,13 @@ class OSG_EXPORT Plane
241241

242242
int noAbove = 0;
243243
int noBelow = 0;
244-
int noOn = 0;
245244
for(std::vector<Vec3f>::const_iterator itr=vertices.begin();
246245
itr != vertices.end();
247246
++itr)
248247
{
249248
float d = distance(*itr);
250249
if (d>0.0f) ++noAbove;
251250
else if (d<0.0f) ++noBelow;
252-
else ++noOn;
253251
}
254252

255253
if (noAbove>0)
@@ -270,15 +268,13 @@ class OSG_EXPORT Plane
270268

271269
int noAbove = 0;
272270
int noBelow = 0;
273-
int noOn = 0;
274271
for(std::vector<Vec3d>::const_iterator itr=vertices.begin();
275272
itr != vertices.end();
276273
++itr)
277274
{
278275
double d = distance(*itr);
279276
if (d>0.0) ++noAbove;
280277
else if (d<0.0) ++noBelow;
281-
else ++noOn;
282278
}
283279

284280
if (noAbove>0)

0 commit comments

Comments
 (0)