summaryrefslogtreecommitdiff
path: root/loader
diff options
context:
space:
mode:
authorJamie Madill <jmadill@chromium.org>2017-03-15 16:17:46 -0400
committerMark Lobodzinski <mark@lunarg.com>2017-03-16 08:40:05 -0600
commit72d7ec308c6367526ba1415fb977c92e372726af (patch)
tree30e3da6b8afb792456b1d124fe5a9fd3c488af21 /loader
parentc7ccb3d54f2193e0e4625de8f4fa8a18aadc3495 (diff)
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 'loader')
-rw-r--r--loader/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader/loader.c b/loader/loader.c
index 9a99759e..9b794b63 100644
--- a/loader/loader.c
+++ b/loader/loader.c
@@ -3976,8 +3976,8 @@ VkResult loader_create_device_chain(const struct loader_physical_device_tramp *p
VkDeviceCreateInfo loader_create_info;
VkResult res;
- PFN_vkGetDeviceProcAddr fpGDPA, nextGDPA = loader_gpa_device_internal;
- PFN_vkGetInstanceProcAddr fpGIPA, nextGIPA = loader_gpa_instance_internal;
+ PFN_vkGetDeviceProcAddr fpGDPA = NULL, nextGDPA = loader_gpa_device_internal;
+ PFN_vkGetInstanceProcAddr fpGIPA = NULL, nextGIPA = loader_gpa_instance_internal;
memcpy(&loader_create_info, pCreateInfo, sizeof(VkDeviceCreateInfo));