From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 23 Mar 2026 23:27:01 +0000 (+0100) Subject: [3.14] GH-131296: Fix clang-cl warning on Windows in socketmodule.h (GH-131832) ... X-Git-Tag: v3.14.4~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c334bdee7bb06d6de3056257e098ca5a9b319a9c;p=thirdparty%2FPython%2Fcpython.git [3.14] GH-131296: Fix clang-cl warning on Windows in socketmodule.h (GH-131832) (GH-146340) (cherry picked from commit 59e2330cf391a9dc324690f8579acd179e66d19d) Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com> --- diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h index 63624d511c35..6f8f4b21599c 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