archrelease: copy trunk to extra-x86_64
[arch-packages.git] / chromium / trunk / random-fixes-for-gcc13.patch
blobfd0b763100ac0bc041d813b7aed151fef3fedc86
1 diff -upr chromium-113.0.5672.63.orig/gin/time_clamper.h chromium-113.0.5672.63/gin/time_clamper.h
2 --- chromium-113.0.5672.63.orig/gin/time_clamper.h 2023-04-26 21:43:06.707860200 +0000
3 +++ chromium-113.0.5672.63/gin/time_clamper.h 2023-05-09 00:14:09.744221610 +0000
4 @@ -6,6 +6,7 @@
5 #define GIN_TIME_CLAMPER_H_
7 #include <algorithm>
8 +#include <cstdlib>
10 #include "base/rand_util.h"
11 #include "base/time/time.h"
12 @@ -48,7 +49,7 @@ class GIN_EXPORT TimeClamper {
13 const int64_t micros = now_micros % 1000;
14 // abs() is necessary for devices with times before unix-epoch (most likely
15 // configured incorrectly).
16 - if (abs(micros) + kResolutionMicros < 1000) {
17 + if (std::abs(micros) + kResolutionMicros < 1000) {
18 return now_micros / 1000;
20 return ClampTimeResolution(now_micros) / 1000;
21 diff -upr chromium-113.0.5672.63.orig/third_party/maldoca/src/maldoca/ole/header.h chromium-113.0.5672.63/third_party/maldoca/src/maldoca/ole/header.h
22 --- chromium-113.0.5672.63.orig/third_party/maldoca/src/maldoca/ole/header.h 2023-04-26 21:43:58.708449600 +0000
23 +++ chromium-113.0.5672.63/third_party/maldoca/src/maldoca/ole/header.h 2023-05-09 00:14:09.744221610 +0000
24 @@ -43,6 +43,7 @@
25 #ifndef MALDOCA_OLE_HEADER_H_
26 #define MALDOCA_OLE_HEADER_H_
28 +#include <cstdint>
29 #include "absl/strings/string_view.h"
31 namespace maldoca {
32 diff -upr chromium-113.0.5672.63.orig/third_party/ruy/src/ruy/profiler/instrumentation.h chromium-113.0.5672.63/third_party/ruy/src/ruy/profiler/instrumentation.h
33 --- chromium-113.0.5672.63.orig/third_party/ruy/src/ruy/profiler/instrumentation.h 2023-04-26 21:47:36.527673200 +0000
34 +++ chromium-113.0.5672.63/third_party/ruy/src/ruy/profiler/instrumentation.h 2023-05-09 00:14:09.744221610 +0000
35 @@ -19,6 +19,7 @@ limitations under the License.
36 #ifdef RUY_PROFILER
37 #include <cstdio>
38 #include <mutex>
39 +#include <string>
40 #include <vector>
41 #endif
43 diff -upr chromium-113.0.5672.63.orig/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.cc chromium-113.0.5672.63/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.cc
44 --- chromium-113.0.5672.63.orig/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.cc 2023-04-26 21:47:39.531938300 +0000
45 +++ chromium-113.0.5672.63/third_party/tflite/src/tensorflow/lite/kernels/internal/spectrogram.cc 2023-05-09 00:14:09.747555160 +0000
46 @@ -17,6 +17,7 @@ limitations under the License.
48 #include <assert.h>
49 #include <math.h>
50 +#include <stdint.h>
52 #include "third_party/fft2d/fft.h"
54 diff -upr chromium-113.0.5672.63.orig/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h chromium-113.0.5672.63/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h
55 --- chromium-113.0.5672.63.orig/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h 2023-04-26 21:47:38.323831800 +0000
56 +++ chromium-113.0.5672.63/third_party/vulkan-deps/vulkan-validation-layers/src/layers/external/vma/vk_mem_alloc.h 2023-05-09 00:14:09.757555808 +0000
57 @@ -2579,6 +2579,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeS
58 #undef VMA_IMPLEMENTATION
60 #include <cstdint>
61 +#include <cstdio>
62 #include <cstdlib>
63 #include <cstring>
64 #include <utility>
65 diff -upr chromium-113.0.5672.63.orig/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h chromium-113.0.5672.63/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h
66 --- chromium-113.0.5672.63.orig/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h 2023-04-26 21:47:36.679686500 +0000
67 +++ chromium-113.0.5672.63/third_party/vulkan_memory_allocator/include/vk_mem_alloc.h 2023-05-09 00:14:41.046248921 +0000
68 @@ -2389,6 +2389,7 @@ VMA_CALL_PRE void VMA_CALL_POST vmaFreeV
69 #undef VMA_IMPLEMENTATION
71 #include <cstdint>
72 +#include <cstdio>
73 #include <cstdlib>
74 #include <cstring>
75 #include <utility>