Commit c4748c50 by Nicolas Capens

Use empty initializer lists for zeroing structs.

This works around an incorrect Clang warning: https://llvm.org/bugs/show_bug.cgi?id=21689 Bug 15387371 Change-Id: I2460a4f6dd414f518789be1fcc8ce8b205c6a066 Reviewed-on: https://swiftshader-review.googlesource.com/4491Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 26177e93
......@@ -33,7 +33,7 @@ namespace sw
socket = -1;
#endif
addrinfo hints = {0};
addrinfo hints = {};
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
......
......@@ -193,8 +193,7 @@ namespace sw
void FrameBuffer::copyLocked()
{
BlitState update = {0};
BlitState update = {};
update.width = width;
update.height = height;
update.destFormat = destFormat;
......
......@@ -2522,7 +2522,7 @@ namespace sw
{
terminateThreads();
SwiftConfig::Configuration configuration = {0};
SwiftConfig::Configuration configuration = {};
swiftConfig->getConfiguration(configuration);
precacheVertex = !newConfiguration && configuration.precache;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment