|
| 1 | +From 336a80c4ccb43b7f175918744984be164e84008d Mon Sep 17 00:00:00 2001 |
| 2 | +From: Martin Jansa <Martin.Jansa@gmail.com> |
| 3 | +Date: Thu, 2 Sep 2021 15:00:39 +0200 |
| 4 | +Subject: [PATCH] Fix build with gcc-11 |
| 5 | + |
| 6 | +Fixes: |
| 7 | + |
| 8 | + 0:26.15 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:120:41: error: no member named 'numeric_limits' in namespace 'std' |
| 9 | + 0:26.15 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max(); |
| 10 | + 0:26.15 ~~~~~^ |
| 11 | + 0:26.15 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:120:56: error: unexpected type name 'uintptr_t': expected expression |
| 12 | + 0:26.15 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max(); |
| 13 | + 0:26.15 ^ |
| 14 | + 0:26.17 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:120:68: error: no member named 'max' in the global namespace |
| 15 | + 0:26.17 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max(); |
| 16 | + 0:26.17 ~~^ |
| 17 | + 0:26.17 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:134:37: error: no member named 'numeric_limits' in namespace 'std' |
| 18 | + 0:26.17 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max(); |
| 19 | + 0:26.17 ~~~~~^ |
| 20 | + 0:26.17 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:134:52: error: unexpected type name 'uintptr_t': expected expression |
| 21 | + 0:26.17 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max(); |
| 22 | + 0:26.17 ^ |
| 23 | + 0:26.18 /OE/build/test-oe-build-time/poky/build/tmp/work/core2-64-poky-linux/firefox/68.9.0esr-r0/firefox-68.9.0/toolkit/components/telemetry/other/ProcessedStack.cpp:134:64: error: no member named 'max' in the global namespace |
| 24 | + 0:26.18 rawStack[stackIndex].mPC = std::numeric_limits<uintptr_t>::max(); |
| 25 | + 0:26.18 ~~^ |
| 26 | + |
| 27 | +Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> |
| 28 | +--- |
| 29 | + toolkit/components/telemetry/other/ProcessedStack.cpp | 1 + |
| 30 | + 1 file changed, 1 insertion(+) |
| 31 | + |
| 32 | +diff --git a/toolkit/components/telemetry/other/ProcessedStack.cpp b/toolkit/components/telemetry/other/ProcessedStack.cpp |
| 33 | +index 148437b75a..fd53708c25 100644 |
| 34 | +--- a/toolkit/components/telemetry/other/ProcessedStack.cpp |
| 35 | ++++ b/toolkit/components/telemetry/other/ProcessedStack.cpp |
| 36 | +@@ -5,6 +5,7 @@ |
| 37 | + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 38 | + |
| 39 | + #include "ProcessedStack.h" |
| 40 | ++#include <limits> |
| 41 | + |
| 42 | + namespace { |
| 43 | + |
0 commit comments