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
-Wno-unused-label
-Wno-unused-parameter
-Wno-unused-variable