Skip to content

Commit

Permalink
Add __declspec(noreturn) to terminate_non_graceful() on Windows (#563)
Browse files Browse the repository at this point in the history
Informs the compiler that the function never returns, which fixes
a -Wsometimes-uninitialized warning.
  • Loading branch information
taylor-b authored Jan 8, 2021
1 parent 4191ca1 commit 6093769
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usrsctplib/user_environment.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ extern u_short ip_id;
#include <stdlib.h>

#if defined(_WIN32)
static inline void
static inline void __declspec(noreturn)
#else
static inline void __attribute__((__noreturn__))
#endif
Expand Down

0 comments on commit 6093769

Please sign in to comment.