Skip to content

Commit bdc1a6a

Browse files
committed
Build safety with -Wextra
1 parent 60062fc commit bdc1a6a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

opendbc/safety/tests/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def test_relay_malfunction(self):
862862
self.safety.set_relay_malfunction(False)
863863
self._rx(make_msg(bus, addr, 8))
864864
should_relay_malfunction = addr in self.RELAY_MALFUNCTION_ADDRS.get(bus, ())
865-
self.assertEqual(should_relay_malfunction, self.safety.get_relay_malfunction(), (bus, addr))
865+
self.assertEqual(should_relay_malfunction, self.safety.get_relay_malfunction(), (bus, hex(addr)))
866866

867867
# test relay malfunction protection logic
868868
self.safety.set_relay_malfunction(True)

opendbc/safety/tests/libsafety/SConscript

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ env = Environment(
1111
CC=CC,
1212
CFLAGS=[
1313
'-Wall',
14+
"-Wextra",
1415
'-Werror',
1516
'-nostdlib',
1617
'-fno-builtin',

0 commit comments

Comments
 (0)