fixed some warnings, and added some asserts

svn path=/branches/xmlbuildsystem/; revision=12843
This commit is contained in:
Royce Mitchell III 2005-01-06 01:35:01 +00:00
parent 7d876c4d0c
commit c6916243d1
4 changed files with 30 additions and 22 deletions

View file

@ -1,6 +1,7 @@
// module.cpp
#include "pch.h"
#include <assert.h>
#include "rbuild.h"
@ -19,9 +20,10 @@ Module::Module ( const XMLElement& moduleNode,
Module::~Module ()
{
for ( size_t i = 0; i < files.size(); i++ )
size_t i;
for ( i = 0; i < files.size(); i++ )
delete files[i];
for ( size_t i = 0; i < libraries.size(); i++ )
for ( i = 0; i < libraries.size(); i++ )
delete libraries[i];
}
@ -40,6 +42,7 @@ void Module::ProcessXML ( const XMLElement& e,
else if ( e.name == "directory" )
{
const XMLAttribute* att = e.GetAttribute ( "name", true );
assert(att);
subpath = path + "/" + att->value;
}
for ( size_t i = 0; i < e.subElements.size (); i++ )