From: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:52:07 +0000 (+0200) Subject: GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832) X-Git-Tag: v3.15.0a1~830 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e2330cf391a9dc324690f8579acd179e66d19d;p=thirdparty%2FPython%2Fcpython.git GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832) --- 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