1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Description: fix expression that cannot be used as a function
Starting with g++ 14, the build fails with:
.
/<<PKGBUILDDIR>>/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.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075273
Forwarded: https://github.com/GATB/MindTheGap/pull/15
Last-Update: 2024-09-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- mindthegap.orig/src/FindBreakpoints.hpp
+++ mindthegap/src/FindBreakpoints.hpp
@@ -783,7 +783,7 @@
template<size_t span>
uint64_t FindBreakpoints<span>::solid_stretch_size()
{
- return this->m_solid_stretch_size();
+ return this->m_solid_stretch_size;
}
template<size_t span>
|