diff options
Diffstat (limited to 'meta/recipes-extended/parted/files')
-rw-r--r-- | meta/recipes-extended/parted/files/0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-extended/parted/files/0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch b/meta/recipes-extended/parted/files/0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch new file mode 100644 index 0000000000..a8ea7ec4f7 --- /dev/null +++ b/meta/recipes-extended/parted/files/0001-bug-74444-PATCH-parted-fix-do_version-declaration.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From eb6bb2e8dfc78ca1a187d07ea29b23a805c61794 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rudi Heitbaum <rudi@heitbaum.com> | ||
3 | Date: Wed, 20 Nov 2024 12:22:22 +0000 | ||
4 | Subject: [PATCH] bug#74444: [PATCH] parted: fix do_version declaration | ||
5 | |||
6 | With gcc 15-20241117 compile fails with the below error, update the | ||
7 | do_version declaration to match the header in command.h | ||
8 | |||
9 | ../../parted/parted.c: In function '_init_commands': | ||
10 | ../../parted/parted.c:2469:9: error: passing argument 2 of 'command_create' from incompatible pointer type [-Wincompatible-pointer-types] | ||
11 | 2469 | do_version, | ||
12 | | ^~~~~~~~~~ | ||
13 | | | | ||
14 | | int (*)(void) | ||
15 | In file included from ../../parted/parted.c:28: | ||
16 | ../../parted/command.h:35:39: note: expected 'int (*)(PedDevice **, PedDisk **)' {aka 'int (*)(struct _PedDevice **, struct _PedDisk **)'} but argument is of type 'int (*)(void)' | ||
17 | 35 | int (*method) (PedDevice** dev, PedDisk** diskp), | ||
18 | | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
19 | |||
20 | Upstream-Status: Backport [https://git.savannah.gnu.org/cgit/parted.git/commit/?id=16343bda6ce0d41edf43f8dac368db3bbb63d271] | ||
21 | Signed-off-by: Rudi Heitbaum <rudi@heitbaum.com> | ||
22 | Signed-off-by: Brian C. Lane <bcl@redhat.com> | ||
23 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
24 | --- | ||
25 | parted/parted.c | 2 +- | ||
26 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
27 | |||
28 | diff --git a/parted/parted.c b/parted/parted.c | ||
29 | index 3abb52f..fc2aeba 100644 | ||
30 | --- a/parted/parted.c | ||
31 | +++ b/parted/parted.c | ||
32 | @@ -2172,7 +2172,7 @@ do_unit (PedDevice** dev, PedDisk** diskp) | ||
33 | } | ||
34 | |||
35 | static int | ||
36 | -do_version () | ||
37 | +do_version (PedDevice** dev, PedDisk** diskp) | ||
38 | { | ||
39 | printf ("\n%s\n%s", | ||
40 | prog_name, | ||