summaryrefslogtreecommitdiff
path: root/sunrpc
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-17 16:12:40 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2025-10-21 09:24:05 -0300
commit76dfd91275c57fa09412436671572337226a90a2 (patch)
tree4dbc897000e6fb58c3bdd7b0bfccac2412dd5195 /sunrpc
parent848342ae15cdcea67319ee686a4a59ecfb1d635a (diff)
Suppress -Wmaybe-uninitialized only for gcc
The warning is not supported by clang. Reviewed-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sunrpc')
-rw-r--r--sunrpc/clnt_udp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/clnt_udp.c b/sunrpc/clnt_udp.c
index ee79b09b40..4353e5da18 100644
--- a/sunrpc/clnt_udp.c
+++ b/sunrpc/clnt_udp.c
@@ -299,7 +299,7 @@ clntudp_call (/* client handle */
inet/net-internal.h because in some other configurations GCC
gives the warning in an inline function. */
DIAG_PUSH_NEEDS_COMMENT;
- DIAG_IGNORE_NEEDS_COMMENT (10, "-Wmaybe-uninitialized");
+ DIAG_IGNORE_NEEDS_COMMENT_GCC (10, "-Wmaybe-uninitialized");
struct deadline total_deadline; /* Determined once by overall timeout. */
DIAG_POP_NEEDS_COMMENT;
struct deadline response_deadline; /* Determined anew for each query. */