[Lldb-commits] [lldb] r350570 - [lldb] Fix -Wstring-plus-int warning in POSIX-DYLD/AuxVector.cpp
Jorge Gorbe Moya via lldb-commits
lldb-commits at lists.llvm.org
Mon Jan 7 13:04:12 PST 2019
Author: jgorbe
Date: Mon Jan 7 13:04:12 2019
New Revision: 350570
URL: http://llvm.org/viewvc/llvm-project?rev=350570&view=rev
Log:
[lldb] Fix -Wstring-plus-int warning in POSIX-DYLD/AuxVector.cpp
Modified:
lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
Modified: lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp?rev=350570&r1=350569&r2=350570&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp (original)
+++ lldb/trunk/source/Plugins/DynamicLoader/POSIX-DYLD/AuxVector.cpp Mon Jan 7 13:04:12 2019
@@ -100,7 +100,7 @@ const char *AuxVector::GetEntryName(Entr
#define ENTRY_NAME(_type) \
_type: \
- name = #_type + 5
+ name = &#_type[5]
switch (type) {
case ENTRY_NAME(AUXV_AT_NULL); break;
case ENTRY_NAME(AUXV_AT_IGNORE); break;
More information about the lldb-commits
mailing list