mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Silence a (newly introduced in) clang warning about adding an int to a string. No bug, r=trivial
This commit is contained in:
parent
ad3c0d4088
commit
ea8d2e3b58
@ -277,7 +277,7 @@ Shape::dump(JSContext *cx, FILE *fp) const
|
||||
if (attrs) {
|
||||
int first = 1;
|
||||
fputs("(", fp);
|
||||
#define DUMP_ATTR(name, display) if (attrs & JSPROP_##name) fputs(" " #display + first, fp), first = 0
|
||||
#define DUMP_ATTR(name, display) if (attrs & JSPROP_##name) fputs(&(" " #display)[first], fp), first = 0
|
||||
DUMP_ATTR(ENUMERATE, enumerate);
|
||||
DUMP_ATTR(READONLY, readonly);
|
||||
DUMP_ATTR(PERMANENT, permanent);
|
||||
@ -292,7 +292,7 @@ Shape::dump(JSContext *cx, FILE *fp) const
|
||||
if (flags) {
|
||||
int first = 1;
|
||||
fputs("(", fp);
|
||||
#define DUMP_FLAG(name, display) if (flags & name) fputs(" " #display + first, fp), first = 0
|
||||
#define DUMP_FLAG(name, display) if (flags & name) fputs(&(" " #display)[first], fp), first = 0
|
||||
DUMP_FLAG(HAS_SHORTID, has_shortid);
|
||||
DUMP_FLAG(METHOD, method);
|
||||
DUMP_FLAG(IN_DICTIONARY, in_dictionary);
|
||||
|
Loading…
Reference in New Issue
Block a user