Skip to content

Commit d881267

Browse files
committed
[cmake] Enable Werror
Signed-off-by: Douglas Reis <doreis@lowrisc.org>
1 parent bc0ac1d commit d881267

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set(CMAKE_CXX_STANDARD 23)
1010
set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

1212
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
13+
set(CMAKE_COMPILE_WARNING_AS_ERROR ON)
1314

1415
find_package(argparse QUIET)
1516
find_package(magic_enum QUIET)

lib/ftdi/spi_host.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ bool SpiHost::set_clock(size_t clock) {
222222
std::cerr << std::format("failed to update the clock:{}\n", status);
223223
return false;
224224
}
225+
return true;
225226
}
226227

227228
static std::optional<SpiHost> new_ft4222(DeviceInfo& device) {

0 commit comments

Comments
 (0)