From 59e2330cf391a9dc324690f8579acd179e66d19d Mon Sep 17 00:00:00 2001 From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Mon, 28 Jul 2025 18:52:07 +0200 Subject: [PATCH] GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832) --- Modules/socketmodule.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 200b2b8c7d83..7fd929af5f27 100644 --- a/Modules/socketmodule.h +++ b/Modules/socketmodule.h @@ -18,6 +18,10 @@ */ #ifdef AF_BTH # include +# ifdef __clang__ +# pragma clang diagnostic push +# pragma clang diagnostic ignored "-Wpragma-pack" +# endif # include /* @@ -51,7 +55,10 @@ struct SOCKADDR_BTH_REDEF { }; # include -#endif +# ifdef __clang__ +# pragma clang diagnostic pop +# endif +#endif /* AF_BTH */ /* Windows 'supports' CMSG_LEN, but does not follow the POSIX standard * interface at all, so there is no point including the code that -- 2.47.3