'mcc' ignoring "-w disable" option
Show older comments
I'm using a Makefile (on Linux) to call 'mcc' (R2017b) to compile multiple projects. I've added the "-w disable" option, and when 'make' prints out the command line, the option is there. But the console output still contains warning messages. Am I missing or not correctly understanding something?
In case it's important, the specific warning I really want to suppress is MATLAB:depfun:req:CorrespondingMCodeIsEmpty. There are 1000s of lines of console output for this warning type, but I know everything compiles and works fine. So I want to improve my odds of catching any other warnings that might show up. Trying to disable just that one warning wasn't working, so I tried to disable all warnings and discovered this problem.
Again, in case it's important, these warnings are being triggered by P-code files that are being brought in via a "-a" specification.
The full command line being issued by 'make' is like:
cd mcc/linux && /path/to/mcc -R -nodesktop -m -v -w disable -a /path/to/pcode -a /another/path/to/pcode /path/to/source.p
ETA: I have also tried entering the 'mcc' portion of this command line directly in the Matlab GUI (R2018a this time, with both "-w disable" and "-w off") and the warnings still appear. So again, it seems either 'mcc's "-w" option is broken or I'm missing/misinterpreting something.
All assistance appreciated!
1 Comment
Tom
on 17 Jan 2025
Answers (1)
Githin George
on 17 Jan 2025
0 votes
I would recommend using MATLAB’s inbuild “warning” command to see if the issue gets resolved as it is mentioned in the “mcc” documentation as well:
More specifically, use the “warning” command to turn “off” the warning for “MATLAB:depfun:req:CorrespondingMCodeIsEmpty” as shown below:
>> warning('off','MATLAB:depfun:req:CorrespondingMCodeIsEmpty’)
Refer to the documentation: https://www.mathworks.com/help/matlab/ref/warning.html#buh8kqc-10
I hope this helps.
Categories
Find more on Deploy to C++ Applications Using mwArray API (C++03) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!