forked from OSchip/llvm-project
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:
parent
db1958d136
commit
a975959996
|
@ -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
|
||||
//------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue