From 1ed450b8e9ebe69ead2db45bd27997b31fd3f86d Mon Sep 17 00:00:00 2001 From: otavepto Date: Thu, 21 Dec 2023 03:28:21 +0200 Subject: [PATCH] fixed all non-void functions missing return values + removed the compiler flag -Wno-return-type --- build_linux.sh | 2 +- overlay_experimental/steam_overlay.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build_linux.sh b/build_linux.sh index 81b19dc3..ccdefa13 100644 --- a/build_linux.sh +++ b/build_linux.sh @@ -217,7 +217,7 @@ release_libs_dir64=( "$zlib_lib64" ) -release_ignore_warn="-Wno-return-type -Wno-switch -Wno-int-to-void-pointer-cast -Wno-null-conversion" +release_ignore_warn="-Wno-switch -Wno-int-to-void-pointer-cast -Wno-null-conversion" common_defs="-DGNUC -DUTF_CPP_CPLUSPLUS=201703L -DCURL_STATICLIB" release_defs="$dbg_defs $common_defs" release_src=( diff --git a/overlay_experimental/steam_overlay.h b/overlay_experimental/steam_overlay.h index 846c4c72..ed95f6bb 100644 --- a/overlay_experimental/steam_overlay.h +++ b/overlay_experimental/steam_overlay.h @@ -218,9 +218,9 @@ public: void OpenOverlay(const char* pchDialog) {} void OpenOverlayWebpage(const char* pchURL) {} - bool ShowOverlay() const {} + bool ShowOverlay() const { return false; } void ShowOverlay(bool state) {} - bool OpenOverlayHook(bool toggle) {} + bool OpenOverlayHook(bool toggle) { return false; } void SetLobbyInvite(Friend friendId, uint64 lobbyId) {} void SetRichInvite(Friend friendId, const char* connect_str) {}