Skip to content

Commit b8aaef9

Browse files
committed
Add TOTAL_PORT_COUNT static assert
1 parent 6fccfc9 commit b8aaef9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Svc/ComQueue/ComQueue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ ComQueue ::ComQueue(const char* const compName)
4141
for (FwIndexType i = 0; i < TOTAL_PORT_COUNT; i++) {
4242
this->m_throttle[i] = false;
4343
}
44+
45+
static_assert(TOTAL_PORT_COUNT >= 1, "ComQueue must have more than one port");
4446
}
4547

4648
ComQueue ::~ComQueue() {}

0 commit comments

Comments
 (0)