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

Fixed compiler warnings.

This commit is contained in:
Sergey Prigogin 2011-08-20 20:19:45 -07:00
parent 0d95c85386
commit 9ba2f49c40

View file

@ -227,8 +227,6 @@ public class IndexCompositeTests extends BaseTestCase {
CharSequence[] contents = getContentsForTest(3);
List projects = new ArrayList();
try {
ProjectBuilder pb = new ProjectBuilder("projB"+System.currentTimeMillis(), true);
pb.addFile("h2.h", contents[1]);
@ -388,11 +386,9 @@ public class IndexCompositeTests extends BaseTestCase {
/**
* Asserts binding counts, and returns the index tested against
* @param cprojA the project to obtain the index for
* @param options the options to obtain the index for
* @param global the number of bindings expected to be found at global scope
* @param all the number of bindings expected to be found at all scopes
* @return
* @return the index
* @throws CoreException
*/
private IIndex assertBCount(int global, int all) throws CoreException {
@ -456,8 +452,9 @@ class ProjectBuilder {
}
ICProject create() throws CoreException {
ICProject result = cpp ? CProjectHelper.createCCProject(name, "bin", IPDOMManager.ID_NO_INDEXER)
: CProjectHelper.createCCProject(name, "bin", IPDOMManager.ID_NO_INDEXER);
ICProject result = cpp ?
CProjectHelper.createCCProject(name, "bin", IPDOMManager.ID_NO_INDEXER) :
CProjectHelper.createCCProject(name, "bin", IPDOMManager.ID_NO_INDEXER);
for (Iterator i = path2content.entrySet().iterator(); i.hasNext();) {
Map.Entry entry = (Map.Entry) i.next();