]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] GH-131296: Fix clang-cl warning on Windows in socketmodule.h (GH-131832) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 Mar 2026 23:27:01 +0000 (00:27 +0100)
committerGitHub <noreply@github.com>
Mon, 23 Mar 2026 23:27:01 +0000 (00:27 +0100)
(cherry picked from commit 59e2330cf391a9dc324690f8579acd179e66d19d)

Co-authored-by: Chris Eibl <138194463+chris-eibl@users.noreply.github.com>
Modules/socketmodule.h

index 63624d511c35a058b6a51e9c8c2dafbf0dc7a24d..6f8f4b21599cfb735ef005b6c2f2bb2bad812345 100644 (file)
  */
 #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