Skip to content

Commit 547c2cd

Browse files
committed
Supply comment in static assert
Static asserts without a comment are a language extension.
1 parent 48537a9 commit 547c2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/netlog/netlog-ssl.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "netlog-dtls.h"
1010
#include "netlog-tls.h"
1111

12-
static_assert(offsetof(TLSManager, auth_mode) == offsetof(DTLSManager, auth_mode));
12+
static_assert(offsetof(TLSManager, auth_mode) == offsetof(DTLSManager, auth_mode), "TLSManager and DTLSManager must be similar");
1313

1414
/* inspired by SSL_set_verify(3) */
1515
int ssl_verify_certificate_validity(int preverify_ok, X509_STORE_CTX *store) {

0 commit comments

Comments
 (0)