Skip to content
Snippets Groups Projects
Commit 409c59b7 authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

Fix string-init compile error (g++ 4.4) in llurlentry_stub.cpp.

Newer C++ compilers produce a (fatal) warning when you try to initialize a
(non-const) char* variable with a string literal: you're supposed to capture
such data in a const char*. But as this module is resolving external
references declared in ancient message-system headers, we don't have the
option to fix the original declaration. Instead use
char* _PREHASH_Foo = const_cast<char*>("string literal"); // sigh
parent 66083f9e
No related branches found
No related tags found
No related merge requests found
......@@ -193,8 +193,8 @@ LLFontGL* LLFontGL::getFontDefault()
return NULL;
}
char* _PREHASH_AgentData = "AgentData";
char* _PREHASH_AgentID = "AgentID";
char* _PREHASH_AgentData = const_cast<char*>("AgentData");
char* _PREHASH_AgentID = const_cast<char*>("AgentID");
LLHost LLHost::invalid(INVALID_PORT,INVALID_HOST_IP_ADDRESS);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment