mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Assert that invalid bus widths can't be passed to bus_width_str().
This appeases a -Wreturn-type warning from GCC. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D31935
This commit is contained in:
parent
828f257277
commit
d2bc7754a2
1 changed files with 2 additions and 0 deletions
|
|
@ -1178,6 +1178,8 @@ static inline const char
|
|||
return ("4-bit");
|
||||
case bus_width_8:
|
||||
return ("8-bit");
|
||||
default:
|
||||
__assert_unreachable();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue