Skip to content

Commit 851c376

Browse files
committed
druntime: Add more static asserts
1 parent 128b7fc commit 851c376

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

druntime/src/core/sys/posix/sys/un.d

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,7 @@ else version (Hurd)
113113
byte[108] sun_path;
114114
}
115115
}
116+
else
117+
{
118+
static assert(false, "Unsupported platform");
119+
}

druntime/src/core/sys/posix/termios.d

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -928,6 +928,11 @@ else version (Hurd)
928928
enum TCOOFF = 0;
929929
enum TCOON = 1;
930930
}
931+
else
932+
{
933+
static assert(false, "Unsupported platform");
934+
}
935+
931936

932937
/*
933938
speed_t cfgetispeed(const scope termios*);

0 commit comments

Comments
 (0)