Why do I receive Polyspace compiler errors even though my code looks acceptable?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 1 Feb. 2019
Beantwortet: MathWorks Support Team
am 21 Mär. 2019
Why do I receive Polyspace compiler errors even though my code looks acceptable?
Akzeptierte Antwort
MathWorks Support Team
am 1 Feb. 2019
Be careful about your Polyspace Preprocessor Definitions. You are able to emulate various compiler behavior by adding or even subtracting macros from the preprocessor.
For example, consider the following line of code. It defines a bitfield member called "MT".
volatile unsigned int MT:1
If one of your Polyspace preprocessor definitions is "MT=0", Polyspace will see the following code when it attempts to compile.
volatile unsigned int 0:1
This will cause a syntax error because the line of code no longer makes sense.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Macros finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!