diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-01-27 23:04:01 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-01-28 09:40:58 -0800 |
commit | 7c5dbbc9ef632cfe2fb913bf166c9a36812d96de (patch) | |
tree | 7ad66bd5988a7b7edb367828ddc6641b76402557 | |
parent | 829327315f1ca0dcc92e1e0ac7721b88f23b72d4 (diff) | |
download | meta-openembedded-7c5dbbc9ef632cfe2fb913bf166c9a36812d96de.tar.gz |
gparted: Do not use NULL where boolean is expected
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-gnome/recipes-extended/gparted/files/0001-Do-not-use-NULL-where-boolean-is-expected.patch | 33 | ||||
-rw-r--r-- | meta-gnome/recipes-extended/gparted/gparted_1.3.1.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta-gnome/recipes-extended/gparted/files/0001-Do-not-use-NULL-where-boolean-is-expected.patch b/meta-gnome/recipes-extended/gparted/files/0001-Do-not-use-NULL-where-boolean-is-expected.patch new file mode 100644 index 0000000000..1b0d24024b --- /dev/null +++ b/meta-gnome/recipes-extended/gparted/files/0001-Do-not-use-NULL-where-boolean-is-expected.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From 9af84e1c08a2159c10baf13244e2c8a7d7e837e9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 27 Jan 2022 23:02:20 -0800 | ||
4 | Subject: [PATCH] Do not use NULL where boolean is expected | ||
5 | |||
6 | Fixes | ||
7 | src/GParted_Core.cc:73:57: error: static_cast from 'nullptr_t' to 'PedPartitionFlag' (aka '_PedPartitionFlag') is not allowed | ||
8 | | for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ; | ||
9 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
10 | | 1 error generated. | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | src/GParted_Core.cc | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc | ||
19 | index f7ac970..3290c66 100644 | ||
20 | --- a/src/GParted_Core.cc | ||
21 | +++ b/src/GParted_Core.cc | ||
22 | @@ -70,7 +70,7 @@ GParted_Core::GParted_Core() | ||
23 | ped_exception_set_handler( ped_exception_handler ) ; | ||
24 | |||
25 | //get valid flags ... | ||
26 | - for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( NULL ) ) ; | ||
27 | + for ( PedPartitionFlag flag = ped_partition_flag_next( static_cast<PedPartitionFlag>( false ) ) ; | ||
28 | flag ; | ||
29 | flag = ped_partition_flag_next( flag ) ) | ||
30 | flags .push_back( flag ) ; | ||
31 | -- | ||
32 | 2.35.0 | ||
33 | |||
diff --git a/meta-gnome/recipes-extended/gparted/gparted_1.3.1.bb b/meta-gnome/recipes-extended/gparted/gparted_1.3.1.bb index 1c8dd69686..355bcce9b6 100644 --- a/meta-gnome/recipes-extended/gparted/gparted_1.3.1.bb +++ b/meta-gnome/recipes-extended/gparted/gparted_1.3.1.bb | |||
@@ -10,6 +10,7 @@ REQUIRED_DISTRO_FEATURES = "x11" | |||
10 | SRC_URI = " \ | 10 | SRC_URI = " \ |
11 | ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.gz \ | 11 | ${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.gz \ |
12 | file://0001-Install-polkit-action-unconditionally-executable-pke.patch \ | 12 | file://0001-Install-polkit-action-unconditionally-executable-pke.patch \ |
13 | file://0001-Do-not-use-NULL-where-boolean-is-expected.patch \ | ||
13 | " | 14 | " |
14 | SRC_URI[sha256sum] = "5eee2e6d74b15ef96b13b3a2310c868ed2298e03341021e7d12a5a98a1d1e109" | 15 | SRC_URI[sha256sum] = "5eee2e6d74b15ef96b13b3a2310c868ed2298e03341021e7d12a5a98a1d1e109" |
15 | 16 | ||