hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 9a67917bbc53cc050c7c7fac1d5a894ae6397899
parent f6a55c2ba6268f8b7c2012a0e961f2acd1b2f2ef
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 14 May 2022 13:49:01 +0200

cmd/ioctlgen: add switch default case

Signed-off-by: Drew DeVault <sir@cmpwn.com>

Diffstat:
Mcmd/ioctlgen/main.ha | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cmd/ioctlgen/main.ha b/cmd/ioctlgen/main.ha @@ -71,6 +71,9 @@ export fn main() void = { yield dir::IOW; case "_IOWR" => yield dir::IOWR; + case => + fmt::fatalf("Unknown ioctl direction {}", + groups[1].content); }; const ioctl = parseioctl(store, dir, groups[2].content);