From 29cf5540a08e53447c8ac828b4ac5152a566bbbd Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 29 Feb 2024 19:33:40 +0100 Subject: [PATCH] Fix some compiler warnings in fpga code Signed-off-by: Steffen Vogel --- fpga/include/villas/fpga/ips/rtds.hpp | 6 ++++++ fpga/tests/unit/dma.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/fpga/include/villas/fpga/ips/rtds.hpp b/fpga/include/villas/fpga/ips/rtds.hpp index e46f4a1c6..8027c3be8 100644 --- a/fpga/include/villas/fpga/ips/rtds.hpp +++ b/fpga/include/villas/fpga/ips/rtds.hpp @@ -52,3 +52,9 @@ private: } // namespace ip } // namespace fpga } // namespace villas + +#ifndef FMT_LEGACY_OSTREAM_FORMATTER +template <> +class fmt::formatter + : public fmt::ostream_formatter {}; +#endif diff --git a/fpga/tests/unit/dma.c b/fpga/tests/unit/dma.c index 7b9ac2949..436bb5ddf 100644 --- a/fpga/tests/unit/dma.c +++ b/fpga/tests/unit/dma.c @@ -17,8 +17,6 @@ int main(int argc, char *argv[]) villasfpga_handle vh; villasfpga_memory mem1, mem2; void *mem1ptr, *mem2ptr; - char line[1024]; - float f; size_t size; if (argv == NULL) {