[Lldb-commits] [lldb] r258306 - Fix clang warning in RenderScriptRuntime

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 20 04:23:23 PST 2016


Author: labath
Date: Wed Jan 20 06:23:23 2016
New Revision: 258306

URL: http://llvm.org/viewvc/llvm-project?rev=258306&view=rev
Log:
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.

Modified:
    lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp

Modified: lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp?rev=258306&r1=258305&r2=258306&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp (original)
+++ lldb/trunk/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp Wed Jan 20 06:23:23 2016
@@ -391,7 +391,7 @@ const unsigned int RenderScriptRuntime::
 };
 
 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
 //------------------------------------------------------------------




More information about the lldb-commits mailing list