Fix warning to not print "Warning" twice

This commit is contained in:
Matt Pharr
2011-12-06 09:03:44 -08:00
parent 9475e13d81
commit d59131d670

View File

@@ -356,8 +356,8 @@ int main(int Argc, char *Argv[]) {
g->opt.level = 0; g->opt.level = 0;
if (outFileName == NULL && headerFileName == NULL) if (outFileName == NULL && headerFileName == NULL)
Warning(SourcePos(), "Warning: no output file or header file name " Warning(SourcePos(), "Nutput file or header file name specified. "
"specified. Program will be compiled and warnings/errors will " "Program will be compiled and warnings/errors will "
"be issued, but no output will be generated."); "be issued, but no output will be generated.");
return Module::CompileAndOutput(file, arch, cpu, target, generatePIC, return Module::CompileAndOutput(file, arch, cpu, target, generatePIC,