summaryrefslogtreecommitdiff
path: root/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch')
-rw-r--r--meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch
new file mode 100644
index 000000000..fea18cff0
--- /dev/null
+++ b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch
@@ -0,0 +1,42 @@
+This patch fixes these new errors:
+
+| XpNotifyPdm.c:234:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
+| XpNotifyPdm.c:271:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
+| XpNotifyPdm.c:286:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
+
+
+Upstream-Status: Pending
+
+Signed-off-by: Saul Wold <sgw@linux.intel.com>
+
+Index: libXp-1.0.1/src/XpNotifyPdm.c
+===================================================================
+--- libXp-1.0.1.orig/src/XpNotifyPdm.c
++++ libXp-1.0.1/src/XpNotifyPdm.c
+@@ -231,7 +231,7 @@ XpGetPdmStartParams (
+ /*
+ * Error - cannot determine or establish a selection_display.
+ */
+- return( (Status) NULL );
++ return( (Status) 0 );
+ }
+
+ /*
+@@ -268,7 +268,7 @@ XpGetPdmStartParams (
+ XCloseDisplay( *selection_display );
+ *selection_display = (Display *) NULL;
+ }
+- return( (Status) NULL );
++ return( (Status) 0 );
+ }
+
+ status = XmbTextListToTextProperty( *selection_display, list, 6,
+@@ -283,7 +283,7 @@ XpGetPdmStartParams (
+ XCloseDisplay( *selection_display );
+ *selection_display = (Display *) NULL;
+ }
+- return( (Status) NULL );
++ return( (Status) 0 );
+ }
+
+ *type = text_prop.encoding;