summaryrefslogtreecommitdiff
path: root/pkg/netsurf
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-10-28 11:05:40 -0700
committerMichael Forney <mforney@mforney.org>2021-11-05 15:05:35 -0700
commit7dd2f07decfdacb77eb7ae4cb5079038cb06a886 (patch)
treef9724d047253d51b2f97810f0645edf6e7613370 /pkg/netsurf
parentd86c0d8b7fdd0835d97d8646a084153cbfb9a181 (diff)
libcss: Remove unnecessary alignment attribute
Diffstat (limited to 'pkg/netsurf')
-rw-r--r--pkg/netsurf/libcss/patch/0001-Remove-unnecessary-alignment-attribute.patch27
-rw-r--r--pkg/netsurf/libcss/ver2
2 files changed, 28 insertions, 1 deletions
diff --git a/pkg/netsurf/libcss/patch/0001-Remove-unnecessary-alignment-attribute.patch b/pkg/netsurf/libcss/patch/0001-Remove-unnecessary-alignment-attribute.patch
new file mode 100644
index 00000000..16244ce6
--- /dev/null
+++ b/pkg/netsurf/libcss/patch/0001-Remove-unnecessary-alignment-attribute.patch
@@ -0,0 +1,27 @@
+From a76e4659fb5218330832821ba84c651b743d423f Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Thu, 28 Oct 2021 11:03:15 -0700
+Subject: [PATCH] Remove unnecessary alignment attribute
+
+This was added just to silence a gcc warning. css_rules are always
+embedded into outer structs, so the cast is perfectly fine.
+---
+ src/stylesheet.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/stylesheet.h b/src/stylesheet.h
+index a71fca6..24be8bf 100644
+--- a/src/stylesheet.h
++++ b/src/stylesheet.h
+@@ -121,7 +121,7 @@ struct css_rule {
+ uint16_t items; /**< number of items (selectors) in rule */
+ uint8_t type; /**< css_rule_type */
+ uint8_t ptype; /**< css_rule_parent_type */
+-} _ALIGNED;
++};
+
+ typedef struct css_rule_selector {
+ css_rule base;
+--
+2.32.0
+
diff --git a/pkg/netsurf/libcss/ver b/pkg/netsurf/libcss/ver
index b9651fc4..0b37c4f5 100644
--- a/pkg/netsurf/libcss/ver
+++ b/pkg/netsurf/libcss/ver
@@ -1 +1 @@
-0.9.1 r0
+0.9.1 r1