From: Daniel Stenberg Date: Wed, 21 Sep 2022 08:36:41 +0000 (+0200) Subject: msh3: change the static_assert to make the code C89 X-Git-Tag: curl-7_86_0~171 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d4b1ad59a30b824c27890222b0226bfd3f98b4ac;p=thirdparty%2Fcurl.git msh3: change the static_assert to make the code C89 --- 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) {