From 97a35ad6cb381883731201cf7b6a4fe629875bfe Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 20 May 2016 15:46:28 +0200 Subject: [PATCH] preprocessor: add warning if more than one osr_params statement is encountered in the .mod file. #948 --- ComputingTasks.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ComputingTasks.cc b/ComputingTasks.cc index dfdf21b7..628c8e9b 100644 --- a/ComputingTasks.cc +++ b/ComputingTasks.cc @@ -1042,6 +1042,8 @@ OsrParamsStatement::OsrParamsStatement(const SymbolList &symbol_list_arg, const void 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; }