mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user