Skip to content
Snippets Groups Projects
Commit 97a35ad6 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: add warning if more than one osr_params statement is encountered...

preprocessor: add warning if more than one osr_params statement is encountered in the .mod file. #948
parent a4045ae2
No related branches found
No related tags found
No related merge requests found
...@@ -1042,6 +1042,8 @@ OsrParamsStatement::OsrParamsStatement(const SymbolList &symbol_list_arg, const ...@@ -1042,6 +1042,8 @@ OsrParamsStatement::OsrParamsStatement(const SymbolList &symbol_list_arg, const
void void
OsrParamsStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) OsrParamsStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings)
{ {
if (mod_file_struct.osr_params_present)
cerr << "WARNING: You have more than one osr_params statement in the .mod file." << endl;
mod_file_struct.osr_params_present = true; mod_file_struct.osr_params_present = true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment