summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/windows/EditLineWin.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-02-25 19:52:41 +0000
committerZachary Turner <zturner@google.com>2015-02-25 19:52:41 +0000
commit49be160531053ba001f0337951572ea9de064eb9 (patch)
treea4a43bc960f558bc8d58b7fcc972d63db3a4eda1 /lldb/source/Host/windows/EditLineWin.cpp
parent8f12ce082508a700c463f186da67a36cfea7d568 (diff)
downloadbcm5719-llvm-49be160531053ba001f0337951572ea9de064eb9.tar.gz
bcm5719-llvm-49be160531053ba001f0337951572ea9de064eb9.zip
Revert "Fix warnings found with clang-cl."
SWIG doesn't like enum : unsigned. Revert this until I can fix this in a way that swig likes. llvm-svn: 230531
Diffstat (limited to 'lldb/source/Host/windows/EditLineWin.cpp')
-rw-r--r--lldb/source/Host/windows/EditLineWin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Host/windows/EditLineWin.cpp b/lldb/source/Host/windows/EditLineWin.cpp
index 49f7def5976..6bd7e161cd0 100644
--- a/lldb/source/Host/windows/EditLineWin.cpp
+++ b/lldb/source/Host/windows/EditLineWin.cpp
@@ -247,10 +247,10 @@ el_set (EditLine *el, int code, ...)
// get the function pointer from the arg list
void *func_vp = (void*)va_arg(vl, el_prompt_func);
- va_arg(vl, int);
+ char escape = (char)va_arg(vl, int);
// call to get the prompt as a string
el_prompt_func func_fp = (el_prompt_func)func_vp;
- func_fp(el);
+ const char *newPrompt = func_fp(el);
}
break;
OpenPOWER on IntegriCloud