From b8b3491a291fcfcbb7b802423453e5f88cefcfc4 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:52:17 +0200 Subject: [PATCH] Preprocessor: removed spurious warnings --- preprocessor/ModFile.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/preprocessor/ModFile.cc b/preprocessor/ModFile.cc index 8358e8fa0e..5e50e8e067 100644 --- a/preprocessor/ModFile.cc +++ b/preprocessor/ModFile.cc @@ -300,10 +300,14 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all // Erase possible remnants of previous runs if (block || byte_code) - mOutputFile << "delete('" << basename << "_dynamic.m');" << endl; + mOutputFile << "if exist('" << basename << "_dynamic.m', 'file')" << endl + << " delete('" << basename << "_dynamic.m');" << endl + << "end" << endl; if (byte_code) - mOutputFile << "delete('" << basename << "_static.m');" << endl; + mOutputFile << "if exist('" << basename << "_static.m', 'file')" << endl + << " delete('" << basename << "_static.m');" << endl + << "end" << endl; if (!use_dll) mOutputFile << "erase_compiled_function('" + basename + "_dynamic');" << endl; -- GitLab