1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 14:55:41 +02:00

Compiler warnings.

This commit is contained in:
Markus Schorn 2010-05-05 13:32:57 +00:00
parent 5f1227d142
commit 10519ecf5f
3 changed files with 4 additions and 3 deletions

View file

@ -81,7 +81,7 @@ abstract public class CPPScope implements ICPPASTInternalScope {
return physicalNode; return physicalNode;
} }
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked" })
public void addName(IASTName name) throws DOMException { public void addName(IASTName name) throws DOMException {
// don't add inactive names to the scope // don't add inactive names to the scope
if (!name.isActive()) if (!name.isActive())
@ -328,7 +328,7 @@ abstract public class CPPScope implements ICPPASTInternalScope {
return CPPSemantics.findBindings(this, name, false); return CPPSemantics.findBindings(this, name, false);
} }
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked" })
public void addBinding(IBinding binding) { public void addBinding(IBinding binding) {
if (bindings == null) if (bindings == null)
bindings = new CharArrayObjectMap(1); bindings = new CharArrayObjectMap(1);

View file

@ -230,6 +230,7 @@ public abstract class ACBuilder extends IncrementalProjectBuilder implements IMa
* on #getDelta(...) being accurate should return a WorkspaceRoot scheduling rule. * on #getDelta(...) being accurate should return a WorkspaceRoot scheduling rule.
* @since 5.2 * @since 5.2
*/ */
@Override
@SuppressWarnings("rawtypes") @SuppressWarnings("rawtypes")
public ISchedulingRule getRule(int trigger, Map args) { public ISchedulingRule getRule(int trigger, Map args) {
return null; return null;

View file

@ -651,7 +651,7 @@ public class CDocumentProvider extends TextFileDocumentProvider {
* @see AnnotationModel#addAnnotation(Annotation, Position, boolean) * @see AnnotationModel#addAnnotation(Annotation, Position, boolean)
*/ */
@Override @Override
@SuppressWarnings({ "unchecked", "rawtypes" }) @SuppressWarnings({ "unchecked" })
protected void addAnnotation(Annotation annotation, Position position, boolean fireModelChanged) throws BadLocationException { protected void addAnnotation(Annotation annotation, Position position, boolean fireModelChanged) throws BadLocationException {
super.addAnnotation(annotation, position, fireModelChanged); super.addAnnotation(annotation, position, fireModelChanged);