From a04642237e7f3dc6db39d66f365cdeed7ced7b42 Mon Sep 17 00:00:00 2001 From: Brett Date: Thu, 6 Jun 2024 02:27:06 -0400 Subject: [PATCH] no discard --- CMakeLists.txt | 2 +- include/blt/gp/program.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33a17bb..13bb4d2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.15) +project(blt-gp VERSION 0.0.16) option(ENABLE_ADDRSAN "Enable the address sanitizer" OFF) option(ENABLE_UBSAN "Enable the ub sanitizer" OFF) diff --git a/include/blt/gp/program.h b/include/blt/gp/program.h index 4acd265..485ee5f 100644 --- a/include/blt/gp/program.h +++ b/include/blt/gp/program.h @@ -104,7 +104,7 @@ namespace blt::gp {} template - inline constexpr blt::size_t getByteOffset() const + [[nodiscard]] inline constexpr blt::size_t getByteOffset() const { blt::size_t offset = 0; blt::size_t current_index = 0;