From d4b1ad59a30b824c27890222b0226bfd3f98b4ac Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 21 Sep 2022 10:36:41 +0200 Subject: [PATCH] msh3: change the static_assert to make the code C89 --- lib/vquic/msh3.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/vquic/msh3.c b/lib/vquic/msh3.c index dffa8a0733..c3e58e726a 100644 --- a/lib/vquic/msh3.c +++ b/lib/vquic/msh3.c @@ -381,9 +381,6 @@ static void MSH3_CALL msh3_shutdown(MSH3_REQUEST *Request, void *IfContext) (void)stream; } -static_assert(sizeof(MSH3_HEADER) == sizeof(struct h2h3pseudo), - "Sizes must match for cast below to work"); - static ssize_t msh3_stream_send(struct Curl_easy *data, int sockindex, const void *mem, @@ -396,6 +393,9 @@ static ssize_t msh3_stream_send(struct Curl_easy *data, struct h2h3req *hreq; (void)sockindex; + /* Sizes must match for cast below to work" */ + DEBUGASSERT(sizeof(MSH3_HEADER) == sizeof(struct h2h3pseudo)); + H3BUGF(infof(data, "msh3_stream_send %zu", len)); if(!stream->req) {