Browse Source

eliminate compiler warnings

David Rose 24 years ago
parent
commit
ae2466fb2f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      dtool/src/cppparser/cppExpression.cxx

+ 2 - 1
dtool/src/cppparser/cppExpression.cxx

@@ -617,7 +617,8 @@ evaluate() const {
 ////////////////////////////////////////////////////////////////////
 CPPType *CPPExpression::
 determine_type() const {
-  CPPType *t1, *t2;
+  CPPType *t1 = (CPPType *)NULL;
+  CPPType *t2 = (CPPType *)NULL;
 
   CPPType *int_type =
     CPPType::new_type(new CPPSimpleType(CPPSimpleType::T_int));