From 9dde9a4f2869e1a5f3ae25d8860c47f37ae5431b Mon Sep 17 00:00:00 2001 From: Alena Laskavaia Date: Thu, 22 Jul 2010 00:20:50 +0000 Subject: [PATCH] Bug 320575 - fallback for add variable should use int not void --- .../src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java index 3144ff82661..441d83f8b5b 100644 --- a/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java +++ b/codan/org.eclipse.cdt.codan.core.cxx/src/org/eclipse/cdt/codan/core/cxx/CxxAstUtils.java @@ -177,7 +177,7 @@ public final class CxxAstUtils { } else { // Fallback - return a `void` declaration IASTDeclarator declarator = factory.newDeclarator(astName.copy()); IASTSimpleDeclSpecifier declspec = factory.newSimpleDeclSpecifier(); - declspec.setType(Kind.eVoid); + declspec.setType(Kind.eInt); IASTSimpleDeclaration simpleDeclaration = factory .newSimpleDeclaration(declspec); simpleDeclaration.addDeclarator(declarator);