Why does Polyspace mark an include as useless when it is clearly being used by the code?

3 ビュー (過去 30 日間)
rise
rise 2023 年 6 月 29 日
コメント済み: Chao 2024 年 7 月 26 日
Polyspace is marking some includes as useless when they are clearly being used in the file.
In my case an implemenation .c file has only 1 include, the coresponding header file, being marked as useless.
Is Polyspace sensitive to code optimization?
  2 件のコメント
Subhajyoti Halder
Subhajyoti Halder 2023 年 7 月 5 日
Hi Rise,
If possible, share the reproduction steps for your issue. That would be helpful in understanding your problem.
Chao
Chao 2024 年 7 月 26 日
I'm having the same problem, can you tell me what to do about it?

サインインしてコメントする。

回答 (1 件)

Christian Bard
Christian Bard 2023 年 7 月 17 日
I assume that you are speaking about BF defect which checks for useless include files in a source code. To answer your question, Polyspace is not senstive to code optimization, especially with such kind of defect.
Would you please contact Technical Support to share the reproduction steps for your issue. As, Subhajyoti Halder said, It would be helpful in understanding your problem.
  1 件のコメント
Chao
Chao 2024 年 7 月 26 日
I'm having the same problem, can you tell me what to do about it?

サインインしてコメントする。

製品


リリース

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by