From 6ae7c7f452f1990967cf58b49afa0d881ce0d5d0 Mon Sep 17 00:00:00 2001 From: Normunds Rieksts Date: Fri, 21 Feb 2025 16:43:06 +0000 Subject: [PATCH] Fix compiler warnings when building the layer Fixes issues that generate warnings when building under specific compiler versions. Change-Id: I2a90429c7b56658be06ddd46fa8acfd660cafdd0 Signed-off-by: Normunds Rieksts --- wsi/extensions/wsi_extension.hpp | 2 ++ wsi/headless/swapchain.hpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wsi/extensions/wsi_extension.hpp b/wsi/extensions/wsi_extension.hpp index 72d0d7e..afe3732 100644 --- a/wsi/extensions/wsi_extension.hpp +++ b/wsi/extensions/wsi_extension.hpp @@ -59,6 +59,8 @@ namespace wsi class wsi_ext { public: + virtual ~wsi_ext() = default; + /** * @brief Get the name of the extension. * diff --git a/wsi/headless/swapchain.hpp b/wsi/headless/swapchain.hpp index 61744a3..b6c5eb4 100644 --- a/wsi/headless/swapchain.hpp +++ b/wsi/headless/swapchain.hpp @@ -95,7 +95,7 @@ protected: * * @param image Handle to the image about to be released. */ - void destroy_image(wsi::swapchain_image &image); + void destroy_image(wsi::swapchain_image &image) override; /** * @brief Sets the present payload for a swapchain image.