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?


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