From b2ff6504b93a35375387fb01470bd20c0b0cec73 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Wed, 15 Mar 2017 16:17:46 -0400 Subject: build: Fix potentially uninitialized VS2015 warning This fixes the a few occurences in demos, the loader and a test. It also adds the warning to the always-on list so it will prevent future regressions. Fixes #1587. Change-Id: I26f69e977b57749a3ab4ddb548ada95384131edc --- demos/cube.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'demos/cube.cpp') diff --git a/demos/cube.cpp b/demos/cube.cpp index 011c456f..082ab4d0 100644 --- a/demos/cube.cpp +++ b/demos/cube.cpp @@ -2678,6 +2678,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int argc; char **argv; + // Ensure wParam is initialized. + msg.wParam = 0; + // Use the CommandLine functions to get the command line arguments. // Unfortunately, Microsoft outputs // this information as wide characters for Unicode, and we simply want the -- cgit v1.2.3