From 9217c58baa0cfd2bcb58e2b7425a5c48a01bb4e3 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) (cherry picked from commit e3be730a4663815c4eda42f442b3d65027d78362) --- preprocessor/ModFile.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index 7bd8eb1c79..f681b4b114 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -263,12 +263,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