diff options
| author | Michael Lentine <mlentine@google.com> | 2016-02-03 16:51:46 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-02-10 09:19:29 -0700 |
| commit | eba876d78708b086fc48abd38cd4e638e282b853 (patch) | |
| tree | 018123c70b06e3a1b477fc0907a9360a44426bf9 /generator.py | |
| parent | 32bce170582e151c13df697f410a8ccda72454b3 (diff) | |
| download | usermoji-eba876d78708b086fc48abd38cd4e638e282b853.tar.xz | |
layers: Enable Wall and Werror.
Diffstat (limited to 'generator.py')
| -rw-r--r-- | generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generator.py b/generator.py index 740f66e9..3c5a424c 100644 --- a/generator.py +++ b/generator.py @@ -2550,7 +2550,7 @@ class ThreadOutputGenerator(OutputGenerator): 'vkDestroyDebugReportCallbackEXT', ] if name in special_functions: - self.intercepts += [ ' "%s", (PFN_vkVoidFunction) %s,' % (name,name) ] + self.intercepts += [ ' {"%s", reinterpret_cast<PFN_vkVoidFunction>(%s)},' % (name,name) ] return if "KHR" in name: self.appendSection('command', '// TODO - not wrapping KHR function ' + name) @@ -2563,7 +2563,7 @@ class ThreadOutputGenerator(OutputGenerator): # record that the function will be intercepted if (self.featureExtraProtect != None): self.intercepts += [ '#ifdef %s' % self.featureExtraProtect ] - self.intercepts += [ ' "%s", (PFN_vkVoidFunction) %s,' % (name,name) ] + self.intercepts += [ ' {"%s", reinterpret_cast<PFN_vkVoidFunction>(%s)},' % (name,name) ] if (self.featureExtraProtect != None): self.intercepts += [ '#endif' ] |
