Moved or removed unused variables
Some variables were either unused or only used in certain contexts,
like debug or tracing, so these were either removed (when unused)
or moved to the right scope (when used conditionally).
Also fixed a string format warning and a missing case warning.
Change-Id: I2d130faa992b5dc06fb332d7404a8aebc7c121ef
Reviewed-on: https://swiftshader-review.googlesource.com/5462
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
diff --git a/src/Main/SwiftConfig.cpp b/src/Main/SwiftConfig.cpp
index c3eb19c..b1cc2e9 100644
--- a/src/Main/SwiftConfig.cpp
+++ b/src/Main/SwiftConfig.cpp
@@ -522,7 +522,7 @@
}
sprintf(header, "Content-Type: text/html; charset=UTF-8\r\n"
- "Content-Length: %d\r\n"
+ "Content-Length: %zd\r\n"
"Host: localhost\r\n"
"\r\n", body.size());