Fix warning to not print "Warning" twice
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user