mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
GH-131296: Fixes clang-cl warning on Windows in socketmodule.h (GH-131832)
This commit is contained in:
parent
cbe6ebe15b
commit
59e2330cf3
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue