← Commit list

e90c4397c8

Viktor Szakats
Viktor Szakats
2026-07-27
SUCCESS Duration: 196s

Subject

vquic: silence `-Wmissing-field-initializers` for nghttp3/ngtcp2 callback tables

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/vquic/cf-ngtcp2-cmn.c+7 -0
@@ -546,6 +546,10 @@ static int cb_recv_rx_key(ngtcp2_conn *tconn, ngtcp2_encryption_level level,
return 0;
}
+#ifdef CURL_HAVE_DIAG
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#endif
static ngtcp2_callbacks ng_callbacks = {
ngtcp2_crypto_client_initial_cb,
NULL, /* recv_client_initial */
@@ -600,6 +604,9 @@ static ngtcp2_callbacks ng_callbacks = {
NULL, /* recv_stop_sending */
#endif
};
+#ifdef CURL_HAVE_DIAG
+#pragma GCC diagnostic pop
+#endif
#if defined(_MSC_VER) && defined(_DLL)
#pragma warning(pop)
lib/vquic/cf-ngtcp2-proxy.c+7 -0
@@ -601,6 +601,10 @@ static nghttp3_ssize cb_h3_tunnel_read_data(nghttp3_conn *conn,
return (nghttp3_ssize)nvecs;
}
+#ifdef CURL_HAVE_DIAG
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#endif
static nghttp3_callbacks ngh3_proxy_callbacks = {
cb_h3_proxy_acked_req_body, /* acked_stream_data */
cb_h3_proxy_stream_close,
@@ -629,6 +633,9 @@ static nghttp3_callbacks ngh3_proxy_callbacks = {
NULL, /* stream_close2 */
#endif
};
+#ifdef CURL_HAVE_DIAG
+#pragma GCC diagnostic pop
+#endif
static CURLcode cf_ngtcp2_proxy_h3_init(struct Curl_cfilter *cf,
struct Curl_easy *data,
lib/vquic/cf-ngtcp2.c+7 -0
@@ -386,6 +386,10 @@ static int cb_h3_reset_stream(nghttp3_conn *conn, int64_t stream_id,
return 0;
}
+#ifdef CURL_HAVE_DIAG
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmissing-field-initializers"
+#endif
static nghttp3_callbacks ngh3_callbacks = {
cb_h3_acked_req_body, /* acked_stream_data */
cb_h3_stream_close,
@@ -414,6 +418,9 @@ static nghttp3_callbacks ngh3_callbacks = {
NULL, /* stream_close2 */
#endif
};
+#ifdef CURL_HAVE_DIAG
+#pragma GCC diagnostic pop
+#endif
static CURLcode init_ngh3_conn(struct Curl_cfilter *cf,
struct Curl_easy *data,