diff options
| author | Jamie Madill <jmadill@chromium.org> | 2017-03-15 16:17:46 -0400 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-03-16 08:40:05 -0600 |
| commit | b2ff6504b93a35375387fb01470bd20c0b0cec73 (patch) | |
| tree | 04a2b2115ba84b97df501cbe330a6234ac03317b /demos/cube.cpp | |
| parent | 8ba558f477354c5271a7e87744bc0450282f8ce4 (diff) | |
| download | usermoji-b2ff6504b93a35375387fb01470bd20c0b0cec73.tar.xz | |
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
Diffstat (limited to 'demos/cube.cpp')
| -rw-r--r-- | demos/cube.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
