Workaround gcc warning -Wmissing-field-initializers

gcc raises a warning when initializing std::array with
empty-braces. This is fixed in gcc 5.1.1, so a workaround
for 4.9 was necessary.

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36750
This commit is contained in:
Roland Winklmeier
2016-05-23 14:02:04 +02:00
parent fe5e122f12
commit 26a78ac2a6

View File

@@ -45,7 +45,7 @@ namespace BlackMisc
flags |= DETACHED_PROCESS;
Q_ASSERT(command.length() <= MAX_PATH);
std::array<WCHAR, MAX_PATH> wszCommandLine {};
std::array<WCHAR, MAX_PATH> wszCommandLine = {{}};
command.toWCharArray(wszCommandLine.data());
int result = CreateProcess (nullptr, wszCommandLine.data(), 0, 0, inherit, flags, nullptr, nullptr, &startupInfo, &processInfo);