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)
|
if (!no_warn)
|
||||||
{
|
{
|
||||||
mOutputFile << "disp('Note: " << warnings.countWarnings() << " warning(s) encountered in the preprocessor')" << endl
|
if (warnings.countWarnings() > 0)
|
||||||
<< "if ~isempty(lastwarn)" << endl
|
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
|
<< " disp('Note: warning(s) encountered in MATLAB/Octave code')" << endl
|
||||||
<< "end" << endl;
|
<< "end" << endl;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue