From 08b3e8cb31ab7f3aaf007c6ef26f0a91a8c26196 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Mollier?= Date: Fri, 6 Sep 2024 20:43:37 +0200 Subject: [PATCH] Fix expression that cannot be used as a function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As reported in [Debian bug #1075273], starting with g++ 14, the build fails with the following error (that was missing from the semi automated report): /<>/src/FindBreakpoints.hpp:786:38: error: expression cannot be used as a function 786 | return this->m_solid_stretch_size(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ Looking at other instances of the m_solid_stretch_size attribute, the use of the expression as a function seems to be erroneous and the intent seems to have been to return the plain integer number instead. [Debian bug #1075273]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075273 Signed-off-by: Étienne Mollier --- src/FindBreakpoints.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FindBreakpoints.hpp b/src/FindBreakpoints.hpp index 0477cd9..947b905 100644 --- a/src/FindBreakpoints.hpp +++ b/src/FindBreakpoints.hpp @@ -783,7 +783,7 @@ typename FindBreakpoints::KmerCanonical& FindBreakpoints::kmer_end() template uint64_t FindBreakpoints::solid_stretch_size() { - return this->m_solid_stretch_size(); + return this->m_solid_stretch_size; } template