AR# 50497: Vivado HLS- How do I suppress synthesis warnings such as unused functions?
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.
Suppresses warnings whenever a static function is declared but not defined, or a non-inline static function is unused.
Suppresses warnings whenever a label is declared but not used.
Suppresses warnings whenever a function parameter is unused aside from its declaration.
Suppresses warnings whenever a local variable or non-constant static variable is unused aside from its declaration.