File: 20_fix_gcc-15_FTBFS.patch

package info (click to toggle)
esys-particle 2.3.5%2Bdfsg2-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,428 kB
  • sloc: cpp: 81,479; python: 5,872; makefile: 1,258; sh: 313; perl: 225
file content (27 lines) | stat: -rw-r--r-- 871 bytes parent folder | download
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
Description: Fix FTBFS with GCC-15
Author: Anton Gladky <gladk@debian.org>
Bug-Debian: https://bugs.debian.org/1096589
Last-Update: 2025-10-08

--- esys-particle-2.3.5+dfsg2.orig/Tools/ExtractFractures/fracframe.cpp
+++ esys-particle-2.3.5+dfsg2/Tools/ExtractFractures/fracframe.cpp
@@ -33,7 +33,7 @@ using std::back_inserter;
 FracFrame::FracFrame()
 {}
 
-bool FracFrame::cmp::operator()(const bdata& b1,const bdata& b2)
+bool FracFrame::cmp::operator()(const bdata& b1,const bdata& b2) const
 {
   bool res=false;
 
--- esys-particle-2.3.5+dfsg2.orig/Tools/ExtractFractures/fracframe.h
+++ esys-particle-2.3.5+dfsg2/Tools/ExtractFractures/fracframe.h
@@ -44,7 +44,7 @@ class FracFrame
   class cmp
   {
   public:
-    bool operator ()(const bdata&, const bdata&);
+    bool operator ()(const bdata&, const bdata&) const;
   };
 
   set<bdata,FracFrame::cmp> m_bonds;