1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix warnings.

This commit is contained in:
Markus Schorn 2009-01-14 09:30:59 +00:00
parent 4218500207
commit 8b59db76b8
2 changed files with 5 additions and 1 deletions

View file

@ -226,6 +226,7 @@ public class ExtractExpression extends ExtractedFunctionConstructionHelper {
} catch (DOMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
name= new CPPASTName(classType.getNameCharArray());
}
return new CPPASTNamedTypeSpecifier(name.copy());
@ -255,6 +256,7 @@ public class ExtractExpression extends ExtractedFunctionConstructionHelper {
} catch (DOMException e) {
// TODO Auto-generated catch block
e.printStackTrace();
name= new CPPASTName(typedef.getNameCharArray());
}
return new CPPASTNamedTypeSpecifier(name.copy());
}

View file

@ -17,6 +17,8 @@ import java.util.Arrays;
import java.util.List;
import java.util.Map;
import org.eclipse.core.runtime.Assert;
import org.eclipse.cdt.core.dom.ast.IASTASMDeclaration;
import org.eclipse.cdt.core.dom.ast.IASTBinaryExpression;
import org.eclipse.cdt.core.dom.ast.IASTCompositeTypeSpecifier;
@ -99,7 +101,7 @@ public class TrailNodeEqualityChecker implements EqualityChecker<IASTNode> {
} else if(node instanceof IASTName){
return isNameEquals(trailNode, node);
} else {
assert true : "Unexpected Node, this code shoud nod reached"; //$NON-NLS-1$
Assert.isLegal(false, "Unexpected Node, this code shoud nod reached"); //$NON-NLS-1$
return true;
}
}