Closed traversaro closed 5 years ago
I managed to reproduce this problem on both gcc 7 and gcc 8. Unfortunately the Mex
target cannot be tested by our CI pipeline, and I usually use clang during my development activities (that does not show this error).
Unfortunately the origin of this warning comes from a macro expansion in simulink.c
, which we do not control since it is shipped with Matlab.
I recently increased a lot the strictness in the debug configuration (see TargetCompileWarnings.cmake), probably the only way would be to disable that warning, at least on the Mex
target. If you configure the project passing TREAT_WARNINGS_AS_ERRORS=OFF
it compiles fine.