diff options
| author | David Spickett <david.spickett@linaro.org> | 2023-12-14 11:25:57 +0000 |
|---|---|---|
| committer | David Spickett <david.spickett@linaro.org> | 2023-12-14 11:25:57 +0000 |
| commit | 616a866bed70642b0bddf8885b541dacf7249c1b (patch) | |
| tree | 288fad1fda724e51b2137aa7d63d3dbbebc63223 /lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py | |
| parent | 7649d223069583019fb5ee34f3218a6726a351e2 (diff) | |
[llvm][Support] Fix missing field in WSADATA warning
```
[136/6185] Building CXX object lib\Support\CMakeFiles\LLVMSupport.dir\raw_ostream.cpp.obj
C:\Work\david.spickett\llvm-project\llvm\lib\Support\raw_ostream.cpp(977,23): warning: missing field 'wHighVersion' initializer [-Wmissing-field-initializers]
977 | WSADATA WsaData = {0};
| ^
```
According to
https://learn.microsoft.com/en-us/windows/win32/api/winsock/ns-winsock-wsadata
this can have any number of fields depending on some ifdefs,
so I've replaced `{0}` with a memset of whatever the size happens to be.
Probably doesn't matter for correctness anyway, but the compiler
won't see it used uninitialised at least.
Diffstat (limited to 'lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py')
0 files changed, 0 insertions, 0 deletions
