From e3be730a4663815c4eda42f442b3d65027d78362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr> Date: Mon, 29 Mar 2010 12:44:20 +0200 Subject: [PATCH] Preprocessor: fixed bug with warnings (they were all disabled) --- preprocessor/ModFile.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index 409a1cd59d..8358e8fa0e 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -276,12 +276,11 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all << "%" << endl << "global_initialization;" << endl << "diary off;" << endl - << "warning_old_state = warning;" << endl - << "warning off;" << endl - << "delete " << basename << ".log;" << endl - << "warning warning_old_state" << endl << "logname_ = '" << basename << ".log';" << endl - << "diary " << basename << ".log" << endl; + << "if exist(logname_, 'file')" << endl + << " delete(logname_)" << endl + << "end" << endl + << "diary(logname_)" << endl; cout << "Processing outputs ..."; -- GitLab