Skip to content

[mod_v8] Fix C++ compile warning - #970

Merged
andywolk merged 1 commit into
signalwire:masterfrom
NormB:mod_v8
Dec 16, 2020
Merged

[mod_v8] Fix C++ compile warning#970
andywolk merged 1 commit into
signalwire:masterfrom
NormB:mod_v8

Conversation

@NormB

@NormB NormB commented Dec 5, 2020

Copy link
Copy Markdown
Contributor

mod_v8.cpp: In function ‘switch_status_t process_status_function(const char*, switch_core_session_t*, switch_stream_handle_t*)’:
mod_v8.cpp:1245:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
char *as = NULL, *output_text = NULL, delim = ",";
^~~
mod_v8.cpp:1263:8: warning: ISO C++ forbids converting a string constant to ‘char
’ [-Wwrite-strings]
as = "plain";
^~~~~~~

mod_v8.cpp: In function ‘switch_status_t process_status_function(const char*, switch_core_session_t*, switch_stream_handle_t*)’:
mod_v8.cpp:1245:52: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
     char *as = NULL, *output_text = NULL, *delim = ",";
                                                    ^~~
mod_v8.cpp:1263:8: warning: ISO C++ forbids converting a string constant to ‘char*’ [-Wwrite-strings]
   as = "plain";
        ^~~~~~~
@crienzo
crienzo requested a review from andywolk December 5, 2020 03:08
@andywolk andywolk changed the title Fix C++ compile warning [mod_v8] Fix C++ compile warning Dec 16, 2020
@andywolk andywolk added the bug Something isn't working label Dec 16, 2020
@andywolk
andywolk merged commit 7b841c0 into signalwire:master Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants