diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-04-18 14:22:10 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-04-22 20:04:39 -0600 |
| commit | 0f91d1a89fb4ae9d97b3d9e5074f37adb16aebf4 (patch) | |
| tree | 191dfa544fec830d5dfd1354ca84e9509f646cdc /scripts | |
| parent | 7578eef44671f4e244f0ef08f496d2748ebd6b7b (diff) | |
| download | usermoji-0f91d1a89fb4ae9d97b3d9e5074f37adb16aebf4.tar.xz | |
scripts: Make object string conversion array const
Prevents unused var warnings by changing to be a constant.
Change-Id: Ie8f6cc837dd589074ae2278de34d4bd0a3e66236
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/helper_file_generator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/helper_file_generator.py b/scripts/helper_file_generator.py index f4f555c0..fc32ff25 100644 --- a/scripts/helper_file_generator.py +++ b/scripts/helper_file_generator.py @@ -551,7 +551,7 @@ class HelperFileOutputGenerator(OutputGenerator): # Output name string helper object_types_header += '// Array of object name strings for OBJECT_TYPE enum conversion\n' - object_types_header += 'static const char *object_string[kVulkanObjectTypeMax] = {\n' + object_types_header += 'static const char * const object_string[kVulkanObjectTypeMax] = {\n' object_types_header += ' "Unknown",\n' for item in self.object_types: fixup_name = item[2:] |
