https://github.com/python/cpython/commit/59e2330cf391a9dc324690f8579acd179e66d19d
commit: 59e2330cf391a9dc324690f8579acd179e66d19d
branch: main
author: Chris Eibl <138194463+chris-e...@users.noreply.github.com>
committer: zooba <steve.do...@microsoft.com>
date: 2025-07-28T17:52:07+01:00
summary:

GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832)

files:
M Modules/socketmodule.h

diff --git a/Modules/socketmodule.h b/Modules/socketmodule.h
index 200b2b8c7d8310..7fd929af5f27b4 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 -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: arch...@mail-archive.com

Reply via email to