Skip to content

Commit 59e2330

Browse files
authored
GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832)
1 parent cbe6ebe commit 59e2330

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Modules/socketmodule.h

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
*/
1919
#ifdef AF_BTH
2020
# include <ws2bth.h>
21+
# ifdef __clang__
22+
# pragma clang diagnostic push
23+
# pragma clang diagnostic ignored "-Wpragma-pack"
24+
# endif
2125
# include <pshpack1.h>
2226

2327
/*
@@ -51,7 +55,10 @@ struct SOCKADDR_BTH_REDEF {
5155

5256
};
5357
# include <poppack.h>
54-
#endif
58+
# ifdef __clang__
59+
# pragma clang diagnostic pop
60+
# endif
61+
#endif /* AF_BTH */
5562

5663
/* Windows 'supports' CMSG_LEN, but does not follow the POSIX standard
5764
* interface at all, so there is no point including the code that

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy