summaryrefslogtreecommitdiff
path: root/gcc9-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gcc9-fix.patch')
-rw-r--r--gcc9-fix.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc9-fix.patch b/gcc9-fix.patch
new file mode 100644
index 0000000..f45c1c8
--- /dev/null
+++ b/gcc9-fix.patch
@@ -0,0 +1,16 @@
+--- a/js/xpconnect/src/XPCWrappedNative.cpp
++++ b/js/xpconnect/src/XPCWrappedNative.cpp
+@@ -2215,10 +2215,9 @@ else if (count == 2 && array[0] == isupp) {
+ name = JS_sprintf_append(name, "%s", array[1]->GetNameString());
+ } else {
+ for (uint16_t i = 0; i < count; i++) {
+- const char* fmt = (i == 0) ?
+- "(%s" : (i == count-1) ?
+- ", %s)" : ", %s";
+- name = JS_sprintf_append(name, fmt,
++ name = JS_sprintf_append(name, (i == 0) ?
++ "(%s" : (i == count-1) ?
++ ", %s)" : ", %s",
+ array[i]->GetNameString());
+ }
+ }