From 3b79919daf37da017e78f5368b72da894472579e Mon Sep 17 00:00:00 2001 From: Moorthy Baskar Date: Fri, 8 Jan 2021 13:22:59 +0000 Subject: [PATCH] compositorcontroller: fix for rdkshell crash fix for #54 return type of CompositorController::draw() changed to void as it is not returning any value. Upon having a return type but no return value, rdkshell encounters segmentation fault while building it on higher version of gcc Signed-off-by: Moorthy Baskar --- compositorcontroller.cpp | 2 +- compositorcontroller.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compositorcontroller.cpp b/compositorcontroller.cpp index e193dbe..840ef91 100644 --- a/compositorcontroller.cpp +++ b/compositorcontroller.cpp @@ -1108,7 +1108,7 @@ namespace RdkShell return ret; } - bool CompositorController::draw() + void CompositorController::draw() { if (gShowWaterMarkImage && gWaterMarkImage != nullptr) { diff --git a/compositorcontroller.h b/compositorcontroller.h index 241f4ef..3cf851a 100644 --- a/compositorcontroller.h +++ b/compositorcontroller.h @@ -89,7 +89,7 @@ namespace RdkShell static bool showSplashScreen(uint32_t displayTimeInSeconds); static bool hideWatermark(); static bool showWatermark(); - static bool draw(); + static void draw(); static bool update(); static bool setLogLevel(const std::string level); static bool getLogLevel(std::string& level);