UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 50497

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

Description

How do I suppress warnings that are not used?

Solution

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
Date Created 06/19/2012
Last Updated 10/09/2012
Status Active
Type Solution Center
Tools
  • AutoESL
  • AutoESL - 2011.4
  • AutoESL - 2011.3
  • More
  • AutoESL - 2011.4.2
  • AutoESL - 2012.1
  • Vivado
  • Less