diff options
| author | Mark Young <marky@lunarg.com> | 2017-05-09 13:19:04 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-05-11 08:19:54 -0600 |
| commit | aa2f52aee908f53a5c13a07c6bb08235b382964c (patch) | |
| tree | b0467d0713d743fbd0bbd374ca1ab58462b5027d /scripts/unique_objects_generator.py | |
| parent | 6e335f8ee7403a20bae3a340d37e24fc6a7ce638 (diff) | |
| download | usermoji-aa2f52aee908f53a5c13a07c6bb08235b382964c.tar.xz | |
layers: Fix unique_objects_wrappers.h
The unique_objects_wrappers.h header was generated with code that
caused several compilation warnings. This resolves those warnings.
Change-Id: I5ed3bdb6bbe7df48b3fe6fb6679916161b32fdfd
Diffstat (limited to 'scripts/unique_objects_generator.py')
| -rw-r--r-- | scripts/unique_objects_generator.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/unique_objects_generator.py b/scripts/unique_objects_generator.py index baf30c19..8ad30530 100644 --- a/scripts/unique_objects_generator.py +++ b/scripts/unique_objects_generator.py @@ -599,7 +599,7 @@ class UniqueObjectsOutputGenerator(OutputGenerator): # # Clean up local declarations def cleanUpLocalDeclarations(self, indent, prefix, name, len, index, process_pnext): - cleanup = '%sif (local_%s%s)\n' % (indent, prefix, name) + cleanup = '%sif (local_%s%s) {\n' % (indent, prefix, name) if len is not None: if process_pnext: cleanup += '%s for (uint32_t %s = 0; %s < %s%s; ++%s) {\n' % (indent, index, index, prefix, len, index) @@ -610,6 +610,7 @@ class UniqueObjectsOutputGenerator(OutputGenerator): if process_pnext: cleanup += '%s FreeUnwrappedExtensionStructs(const_cast<void *>(local_%s%s->pNext));\n' % (indent, prefix, name) cleanup += '%s delete local_%s%s;\n' % (indent, prefix, name) + cleanup += "%s}\n" % (indent) return cleanup # # Output UO code for a single NDO (ndo_count is NULL) or a counted list of NDOs |
