From 1f9e50edd4d4536d227dd37063b3cf77749c3eef Mon Sep 17 00:00:00 2001 From: Brandon Jones Date: Thu, 12 Jan 2023 11:44:40 +0000 Subject: [PATCH] Add another const to arrays of strings in renamer.cc These were triggering the "mutable constants" check on the android binary size bot. https://logs.chromium.org/logs/chromium/buildbucket/cr-buildbucket/8792318173224229089/+/u/Trybot_Results/Mutable_Constants_Diff Bug: dawn:286 Change-Id: I91d823edb14335cbb5139ef0e7723b2d360d1ebc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/116801 Auto-Submit: Brandon Jones Kokoro: Kokoro Commit-Queue: Ben Clayton Reviewed-by: Ben Clayton --- src/tint/transform/renamer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tint/transform/renamer.cc b/src/tint/transform/renamer.cc index 8d9872dedf..a467806b65 100644 --- a/src/tint/transform/renamer.cc +++ b/src/tint/transform/renamer.cc @@ -35,7 +35,7 @@ namespace tint::transform { namespace { // This list is used for a binary search and must be kept in sorted order. -const char* kReservedKeywordsGLSL[] = { +const char* const kReservedKeywordsGLSL[] = { "abs", "acos", "acosh", @@ -395,7 +395,7 @@ const char* kReservedKeywordsGLSL[] = { }; // This list is used for a binary search and must be kept in sorted order. -const char* kReservedKeywordsHLSL[] = { +const char* const kReservedKeywordsHLSL[] = { "AddressU", "AddressV", "AddressW", @@ -969,7 +969,7 @@ const char* kReservedKeywordsHLSL[] = { }; // This list is used for a binary search and must be kept in sorted order. -const char* kReservedKeywordsMSL[] = { +const char* const kReservedKeywordsMSL[] = { "HUGE_VALF", "HUGE_VALH", "INFINITY",