Fixed -Wstring-plus-int related errors for compatibility with Xcode-11.4
parent
794778eede
commit
11e9fbefeb
|
|
@ -506,7 +506,7 @@ struct Data
|
|||
const char* name;
|
||||
} typedata[] =
|
||||
{
|
||||
#define def(type) { LLSD::type, #type + 4 }
|
||||
#define def(type) { LLSD::type, &#type[4] }
|
||||
def(TypeUndefined),
|
||||
def(TypeBoolean),
|
||||
def(TypeInteger),
|
||||
|
|
|
|||
|
|
@ -222,7 +222,7 @@ struct symbol_info
|
|||
|
||||
#define ent(SYMBOL) \
|
||||
{ \
|
||||
#SYMBOL + 28, /* skip "LLCommandHandler::UNTRUSTED_" prefix */ \
|
||||
&#SYMBOL[28], /* skip "LLCommandHandler::UNTRUSTED_" prefix */ \
|
||||
SYMBOL \
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ public:
|
|||
{
|
||||
// from curl.h
|
||||
// skip the "CURLE_" prefix for each of these strings
|
||||
#define def(sym) (mMap[sym] = #sym + 6)
|
||||
#define def(sym) (mMap[sym] = &#sym[6])
|
||||
def(CURLE_OK);
|
||||
def(CURLE_UNSUPPORTED_PROTOCOL); /* 1 */
|
||||
def(CURLE_FAILED_INIT); /* 2 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue