]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832)
authorChris Eibl <138194463+chris-eibl@users.noreply.github.com>
Mon, 28 Jul 2025 16:52:07 +0000 (18:52 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Jul 2025 16:52:07 +0000 (17:52 +0100)
Modules/socketmodule.h

index 200b2b8c7d8310cd49fd4d1371154e507d4723a2..7fd929af5f27b40bc669360f4c57a0f25141ccc6 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