diff options
author | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-06-05 10:51:14 -0700 |
---|---|---|
committer | jc_gargma <jc_gargma@iserlohn-fortress.net> | 2019-06-05 10:51:14 -0700 |
commit | 6beb107745bacad74d97dfd28270c76014a19ec9 (patch) | |
tree | 81a2f0eea1ea5310b2bec539043c0e6c2ac03b33 /gcc9-fix.patch | |
parent | Updated to 28.5.1 (diff) | |
download | palemoon-6beb107745bacad74d97dfd28270c76014a19ec9.tar.xz |
Updated to 28.5.2
Added patch for compiling on gcc 9
Diffstat (limited to 'gcc9-fix.patch')
-rw-r--r-- | gcc9-fix.patch | 16 |
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()); + } + } |