Signed-off-by: Khem Raj <raj.k...@gmail.com>
---
 ...t-use-NULL-where-boolean-is-expected.patch | 33 +++++++++++++++++++
 .../recipes-extended/gparted/gparted_1.3.1.bb |  1 +
 2 files changed, 34 insertions(+)
 create mode 100644 
meta-gnome/recipes-extended/gparted/files/0001-Do-not-use-NULL-where-boolean-is-expected.patch

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 @@
+From 9af84e1c08a2159c10baf13244e2c8a7d7e837e9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.k...@gmail.com>
+Date: Thu, 27 Jan 2022 23:02:20 -0800
+Subject: [PATCH] Do not use NULL where boolean is expected
+
+Fixes
+src/GParted_Core.cc:73:57: error: static_cast from 'nullptr_t' to 
'PedPartitionFlag' (aka '_PedPartitionFlag') is not allowed
+|         for ( PedPartitionFlag flag = ped_partition_flag_next( 
static_cast<PedPartitionFlag>( NULL ) ) ;
+|                                                                
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+| 1 error generated.
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.k...@gmail.com>
+---
+ src/GParted_Core.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/GParted_Core.cc b/src/GParted_Core.cc
+index f7ac970..3290c66 100644
+--- a/src/GParted_Core.cc
++++ b/src/GParted_Core.cc
+@@ -70,7 +70,7 @@ GParted_Core::GParted_Core()
+       ped_exception_set_handler( ped_exception_handler ) ; 
+ 
+       //get valid flags ...
+-      for ( PedPartitionFlag flag = ped_partition_flag_next( 
static_cast<PedPartitionFlag>( NULL ) ) ;
++      for ( PedPartitionFlag flag = ped_partition_flag_next( 
static_cast<PedPartitionFlag>( false ) ) ;
+             flag ;
+             flag = ped_partition_flag_next( flag ) )
+               flags .push_back( flag ) ;
+-- 
+2.35.0
+
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"
 SRC_URI = " \
     
${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BPN}-${PV}/${BPN}-${PV}.tar.gz \
     file://0001-Install-polkit-action-unconditionally-executable-pke.patch \
+    file://0001-Do-not-use-NULL-where-boolean-is-expected.patch \
 "
 SRC_URI[sha256sum] = 
"5eee2e6d74b15ef96b13b3a2310c868ed2298e03341021e7d12a5a98a1d1e109"
 
-- 
2.35.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#95144): 
https://lists.openembedded.org/g/openembedded-devel/message/95144
Mute This Topic: https://lists.openembedded.org/mt/88740507/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to