From c5c76f0033b64ac0a779bb3c95dc5faa3a21b34c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Mon, 16 May 2011 15:00:43 -0400 Subject: [PATCH] compile with -Wall, fix a warning --- SConstruct | 2 +- WFObj.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 1fec302..3dd180b 100644 --- a/SConstruct +++ b/SConstruct @@ -1,6 +1,6 @@ # vim:filetype=python -env = Environment(LIBS = ['GL']) +env = Environment(LIBS = ['GL'], CXXFLAGS = ['-Wall']) env.Program('driver', Glob('*.cc')) diff --git a/WFObj.cc b/WFObj.cc index 329a934..733597a 100644 --- a/WFObj.cc +++ b/WFObj.cc @@ -122,7 +122,7 @@ WFObj::~WFObj() void WFObj::clear() { - for (int i = 0; i < sizeof(m_vertices)/sizeof(m_vertices[0]); i++) + for (size_t i = 0; i < sizeof(m_vertices)/sizeof(m_vertices[0]); i++) m_vertices[i].clear(); m_faces.clear(); m_materials.clear();