mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
libcec: Fix type mismatch for return value of LibCecBootloader()
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
2855fb2de8
commit
829327315f
@ -0,0 +1,41 @@
|
||||
From 2241edc8b70c2a54d109ac9c0e821889ac138d40 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Thu, 27 Jan 2022 22:49:52 -0800
|
||||
Subject: [PATCH] cecloader: Match return type of function LibCecBootloader
|
||||
|
||||
Fixes
|
||||
include/cecloader.h:175:14: error: cannot initialize return object of type 'bool' with an rvalue of type 'nullptr_t'
|
||||
return NULL;
|
||||
^~~~
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
include/cecloader.h | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/include/cecloader.h b/include/cecloader.h
|
||||
index be76468f..550f598e 100644
|
||||
--- a/include/cecloader.h
|
||||
+++ b/include/cecloader.h
|
||||
@@ -172,7 +172,7 @@ bool LibCecBootloader(const char *strLib = NULL)
|
||||
if (!g_libCEC)
|
||||
{
|
||||
std::cout << dlerror() << std::endl;
|
||||
- return NULL;
|
||||
+ return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -181,7 +181,7 @@ bool LibCecBootloader(const char *strLib = NULL)
|
||||
if (!LibCecBootloader)
|
||||
{
|
||||
std::cout << "cannot find CECStartBootloader" << std::endl;
|
||||
- return NULL;
|
||||
+ return false;
|
||||
}
|
||||
|
||||
bool bReturn = LibCecBootloader();
|
||||
--
|
||||
2.35.0
|
||||
|
||||
@ -14,6 +14,7 @@ SRC_URI = "git://github.com/Pulse-Eight/libcec.git;branch=release;protocol=https
|
||||
file://0001-CheckPlatformSupport.cmake-Do-not-hardcode-lib-path.patch \
|
||||
file://0001-Enhance-reproducibility.patch \
|
||||
file://0001-Remove-buggy-test-confusing-host-and-target.patch \
|
||||
file://0001-cecloader-Match-return-type-of-function-LibCecBootlo.patch \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user