Skip to content

Commit 0843c6b

Browse files
committed
Add more static asserts
1 parent 2468dc9 commit 0843c6b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

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

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

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

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

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

0 commit comments

Comments
 (0)