mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 22:02:05 +00:00
Fix clang warning in RenderScriptRuntime
std::array should have "the same semantics as a struct holding a C-style array T[N] as its only non-static data member", so the initialization should have one more level of braces. Hopefully, no compiler will object to that. llvm-svn: 258306
This commit is contained in:
1 parent
db1958d136
commit
a975959996
1 file changed
+1
-1
+1
-1
@@ -391,7 +391,7 @@ const unsigned int RenderScriptRuntime::AllocationDetails::RSTypeToFormat[][3] =
|
||||
};
|
||||
|
||||
const std::string RenderScriptRuntime::s_runtimeExpandSuffix(".expand");
|
||||
const std::array<const char *, 3> RenderScriptRuntime::s_runtimeCoordVars{"rsIndex", "p->current.y", "p->current.z"};
|
||||
const std::array<const char *, 3> RenderScriptRuntime::s_runtimeCoordVars{{"rsIndex", "p->current.y", "p->current.z"}};
|
||||
//------------------------------------------------------------------
|
||||
// Static Functions
|
||||
//------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user