ahci: enable conversion error checking

Fixes #5134
This commit is contained in:
Alexander Boettcher 2024-03-04 13:56:20 +01:00 committed by Christian Helmuth
parent 34674ac49f
commit 32cb245cb8
2 changed files with 2 additions and 4 deletions

View File

@ -312,8 +312,8 @@ class Ata::Protocol : public Ahci::Protocol, Noncopyable
*r = request;
size_t slot = _slots.index(*r);
_slot_states |= 1u << slot;
auto const slot = unsigned(_slots.index(*r));
_slot_states |= 1u << slot;
/* setup fis */
Command_table table(port.command_table_range(slot),

View File

@ -3,6 +3,4 @@ SRC_CC += main.cc
INC_DIR += $(PRG_DIR)
LIBS += base
CC_CXX_WARN_STRICT_CONVERSION =
vpath %.cc $(PRG_DIR)