Remove spurious display when there is zero preprocessor warning
parent
8ba4a3a4d2
commit
70193c92b2
|
@ -640,8 +640,10 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool no_log, b
|
|||
|
||||
if (!no_warn)
|
||||
{
|
||||
mOutputFile << "disp('Note: " << warnings.countWarnings() << " warning(s) encountered in the preprocessor')" << endl
|
||||
<< "if ~isempty(lastwarn)" << endl
|
||||
if (warnings.countWarnings() > 0)
|
||||
mOutputFile << "disp('Note: " << warnings.countWarnings() << " warning(s) encountered in the preprocessor')" << endl;
|
||||
|
||||
mOutputFile << "if ~isempty(lastwarn)" << endl
|
||||
<< " disp('Note: warning(s) encountered in MATLAB/Octave code')" << endl
|
||||
<< "end" << endl;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue