diff options
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.patch | 42 |
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 0000000000..fea18cff0f --- /dev/null +++ b/meta/recipes-graphics/xorg-lib/libxp/fix-cast-error.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | This patch fixes these new errors: | ||
2 | |||
3 | | XpNotifyPdm.c:234:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
4 | | XpNotifyPdm.c:271:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
5 | | XpNotifyPdm.c:286:10: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] | ||
6 | |||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Saul Wold <sgw@linux.intel.com> | ||
11 | |||
12 | Index: libXp-1.0.1/src/XpNotifyPdm.c | ||
13 | =================================================================== | ||
14 | --- libXp-1.0.1.orig/src/XpNotifyPdm.c | ||
15 | +++ libXp-1.0.1/src/XpNotifyPdm.c | ||
16 | @@ -231,7 +231,7 @@ XpGetPdmStartParams ( | ||
17 | /* | ||
18 | * Error - cannot determine or establish a selection_display. | ||
19 | */ | ||
20 | - return( (Status) NULL ); | ||
21 | + return( (Status) 0 ); | ||
22 | } | ||
23 | |||
24 | /* | ||
25 | @@ -268,7 +268,7 @@ XpGetPdmStartParams ( | ||
26 | XCloseDisplay( *selection_display ); | ||
27 | *selection_display = (Display *) NULL; | ||
28 | } | ||
29 | - return( (Status) NULL ); | ||
30 | + return( (Status) 0 ); | ||
31 | } | ||
32 | |||
33 | status = XmbTextListToTextProperty( *selection_display, list, 6, | ||
34 | @@ -283,7 +283,7 @@ XpGetPdmStartParams ( | ||
35 | XCloseDisplay( *selection_display ); | ||
36 | *selection_display = (Display *) NULL; | ||
37 | } | ||
38 | - return( (Status) NULL ); | ||
39 | + return( (Status) 0 ); | ||
40 | } | ||
41 | |||
42 | *type = text_prop.encoding; | ||