Skip to content

Commit 813dcde

Browse files
committed
chore: fix warning
1 parent d70928e commit 813dcde

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nestkernel/connection.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
#include "dictutils.h"
4646
#include "doubledatum.h"
4747

48+
#include <cstdlib>
49+
4850
namespace nest
4951
{
5052

@@ -134,7 +136,7 @@ class Connection
134136
* To prevent erronous calls of this function on primary connections, the base class implementation
135137
* below just contains `assert(false)`.
136138
*/
137-
SecondaryEvent* get_secondary_event();
139+
[[noreturn]] SecondaryEvent* get_secondary_event();
138140

139141
/**
140142
* Get all properties of this connection and put them into a dictionary.
@@ -401,6 +403,7 @@ SecondaryEvent*
401403
Connection< targetidentifierT >::get_secondary_event()
402404
{
403405
assert( false );
406+
std::abort();
404407
}
405408

406409
} // namespace nest

0 commit comments

Comments
 (0)