Fix warnings.

develop
Alexander Gavrilov 2012-03-26 12:42:05 +04:00
parent 00a5bfcf3e
commit 157f23be5c
2 changed files with 4 additions and 1 deletions

@ -65,7 +65,10 @@ void *type_identity::allocate() {
bool type_identity::copy(void *tgt, const void *src) { bool type_identity::copy(void *tgt, const void *src) {
if (can_allocate() && tgt && src) if (can_allocate() && tgt && src)
{
do_copy(tgt, src); do_copy(tgt, src);
return true;
}
else else
return false; return false;
} }

@ -40,7 +40,7 @@ namespace df
namespace DFHack namespace DFHack
{ {
class MaterialInfo; struct MaterialInfo;
using google::protobuf::RepeatedField; using google::protobuf::RepeatedField;
using google::protobuf::RepeatedPtrField; using google::protobuf::RepeatedPtrField;