1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-06 09:16:02 +02:00

compilation warnings

This commit is contained in:
Andrew Gvozdev 2010-04-29 01:52:57 +00:00
parent 67d447ae99
commit 25ded47847
3 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2000, 2006 QNX Software Systems and others. * Copyright (c) 2000, 2010 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -19,10 +19,12 @@ public class DefineVariable extends VariableDefinition {
super(parent, name, value); super(parent, name, value);
} }
@Override
public boolean isMultiLine() { public boolean isMultiLine() {
return true; return true;
} }
@Override
public String toString() { public String toString() {
StringBuffer sb = new StringBuffer(GNUMakefileConstants.VARIABLE_DEFINE); StringBuffer sb = new StringBuffer(GNUMakefileConstants.VARIABLE_DEFINE);
sb.append(getName()).append('\n'); sb.append(getName()).append('\n');

View file

@ -1,5 +1,5 @@
/******************************************************************************* /*******************************************************************************
* Copyright (c) 2000, 2008 QNX Software Systems and others. * Copyright (c) 2000, 2010 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * which accompanies this distribution, and is available at
@ -227,6 +227,7 @@ public class PosixMakefile extends AbstractMakefile {
/* (non-Javadoc) /* (non-Javadoc)
* @see org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile#getBuiltins() * @see org.eclipse.cdt.make.internal.core.makefile.AbstractMakefile#getBuiltins()
*/ */
@Override
public IDirective[] getBuiltins() { public IDirective[] getBuiltins() {
return builtins; return builtins;
} }

View file

@ -25,7 +25,7 @@ public class PosixMakefileUtil {
} }
public static String[] findTargets(String line) { public static String[] findTargets(String line) {
List aList = new ArrayList(); List<String> aList = new ArrayList<String>();
int space; int space;
// Trim away trailing and prepending spaces. // Trim away trailing and prepending spaces.
line = line.trim(); line = line.trim();
@ -37,7 +37,7 @@ public class PosixMakefileUtil {
if (line.length() > 0) { if (line.length() > 0) {
aList.add(line); aList.add(line);
} }
return (String[]) aList.toArray(new String[0]); return aList.toArray(new String[0]);
} }
public static boolean isMacroDefinition(String line) { public static boolean isMacroDefinition(String line) {