From 95156862a69fe15025a14bec39e30a494a4b0f22 Mon Sep 17 00:00:00 2001 From: Douglas Reis Date: Thu, 28 May 2026 10:30:32 +0100 Subject: [PATCH 1/2] [cmake] Enable Werror Signed-off-by: Douglas Reis --- CMakeLists.txt | 1 + lib/ftdi/spi_host.cc | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9bf6dec..7a3535c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,7 @@ set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) +set(CMAKE_COMPILE_WARNING_AS_ERROR ON) find_package(argparse QUIET) find_package(magic_enum QUIET) diff --git a/lib/ftdi/spi_host.cc b/lib/ftdi/spi_host.cc index d65f6eb..ab6fc24 100644 --- a/lib/ftdi/spi_host.cc +++ b/lib/ftdi/spi_host.cc @@ -222,6 +222,7 @@ bool SpiHost::set_clock(size_t clock) { std::cerr << std::format("failed to update the clock:{}\n", status); return false; } + return true; } static std::optional new_ft4222(DeviceInfo& device) { From b95b820e5a2bd6b12bfb864b0b1719ce2e8ffad8 Mon Sep 17 00:00:00 2001 From: Douglas Reis Date: Thu, 28 May 2026 10:33:41 +0100 Subject: [PATCH 2/2] [nix] Bump the version Signed-off-by: Douglas Reis --- nix/ftditool.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/ftditool.nix b/nix/ftditool.nix index 704344b..bd1bef1 100644 --- a/nix/ftditool.nix +++ b/nix/ftditool.nix @@ -19,7 +19,7 @@ }: stdenv.mkDerivation { pname = "ftditool"; - version = "0.1.0"; + version = "0.4.0"; src = ../.; nativeBuildInputs = [