From 40a48ae9514c0ca6b5e94808b27f4cd05560a7ec Mon Sep 17 00:00:00 2001 From: Peter Olsson Date: Sat, 1 Feb 2014 19:18:47 +0100 Subject: [PATCH] mod_v8: Fixed compiler warnings on Linux --- src/mod/languages/mod_v8/src/fseventhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/languages/mod_v8/src/fseventhandler.cpp b/src/mod/languages/mod_v8/src/fseventhandler.cpp index 65b3be239b..a60d583d7d 100644 --- a/src/mod/languages/mod_v8/src/fseventhandler.cpp +++ b/src/mod/languages/mod_v8/src/fseventhandler.cpp @@ -173,7 +173,7 @@ void FSEventHandler::QueueEvent(switch_event_t *event) } } -static char *MARKER = "1"; +static const char *MARKER = "1"; void FSEventHandler::DoSubscribe(const v8::FunctionCallbackInfo& info) { @@ -463,7 +463,7 @@ static void *SWITCH_THREAD_FUNC api_exec(switch_thread_t *thread, void *obj) } if (!reply) { - reply = "Command returned no output!"; + reply = (char *)"Command returned no output!"; } if (switch_event_create(&event, SWITCH_EVENT_BACKGROUND_JOB) == SWITCH_STATUS_SUCCESS) {