AR# 50497

Vivado HLS- How do I suppress synthesis warnings such as unused functions?

描述

How do I suppress warnings that are not used?

解决方案

Vivado HLS defaults with the-Wall option to report all warnings. To suppress warnings on unused functions, use "-Wno-" CFLAGS in the project settings. HLS supports warning options outlined by thegcc specification.

A few commonly used options are provided.

-Wno-unused-function
Suppresses warnings whenever a static function is declared but not defined, or a non-inline static function is unused.
-Wno-unused-label
Suppresses warnings whenever a label is declared but not used.
-Wno-unused-parameter
Suppresses warnings whenever a function parameter is unused aside from its declaration.
-Wno-unused-variable
Suppresses warnings whenever a local variable or non-constant static variable is unused aside from its declaration.
AR# 50497
日期 10/09/2012
状态 Active
Type 解决方案中心
Tools More Less