https://github.com/python/cpython/commit/c334bdee7bb06d6de3056257e098ca5a9b319a9c
commit: c334bdee7bb06d6de3056257e098ca5a9b319a9c
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: ambv <[email protected]>
date: 2026-03-24T00:27:01+01:00
summary:

[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 <[email protected]>

files:
M Modules/socketmodule.h

diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 63624d511c35a0..6f8f4b21599cfb 100644
--- a/Modules/socketmodule.h
+++ b/Modules/socketmodule.h
@@ -18,6 +18,10 @@
  */
 #ifdef AF_BTH
 # include <ws2bth.h>
+# ifdef __clang__
+#  pragma clang diagnostic push
+#  pragma clang diagnostic ignored "-Wpragma-pack"
+# endif
 # include <pshpack1.h>
 
 /*
@@ -51,7 +55,10 @@ struct SOCKADDR_BTH_REDEF {
 
 };
 # include <poppack.h>
-#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

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to