summaryrefslogtreecommitdiff
path: root/pkg/wayland/patch/0002-Avoid-pointer-arithmetic-on-void.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/wayland/patch/0002-Avoid-pointer-arithmetic-on-void.patch')
-rw-r--r--pkg/wayland/patch/0002-Avoid-pointer-arithmetic-on-void.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/pkg/wayland/patch/0002-Avoid-pointer-arithmetic-on-void.patch b/pkg/wayland/patch/0002-Avoid-pointer-arithmetic-on-void.patch
deleted file mode 100644
index cebbf61c..00000000
--- a/pkg/wayland/patch/0002-Avoid-pointer-arithmetic-on-void.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 09b452f0ac177bd95258ec54f9540fec1a1a817d Mon Sep 17 00:00:00 2001
-From: Michael Forney <mforney@mforney.org>
-Date: Sat, 1 Jun 2019 15:01:23 -0700
-Subject: [PATCH] Avoid pointer arithmetic on `void *`
-Upstream: 678c8681e28739da1fea667ae59118cfc0968497
-
-The pointer operand to the binary `+` operator must be to a complete
-object type. Since we are working with byte sizes, use `char *` for
-arithmetic instead.
----
- src/wayland-util.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/wayland-util.c b/src/wayland-util.c
-index 3a471a8..d5973bf 100644
---- a/src/wayland-util.c
-+++ b/src/wayland-util.c
-@@ -131,7 +131,7 @@ wl_array_add(struct wl_array *array, size_t size)
- array->alloc = alloc;
- }
-
-- p = array->data + array->size;
-+ p = (char *)array->data + array->size;
- array->size += size;
-
- return p;
---
-2.20.1
-