File: gcc-15.patch

package info (click to toggle)
veryfasttree 4.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 1,308 kB
  • sloc: cpp: 7,403; python: 209; sh: 38; makefile: 36
file content (39 lines) | stat: -rw-r--r-- 1,346 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
28
29
30
31
32
33
34
35
36
37
38
39
Description: Fix build failures with Gcc 15.
 Starting with Gcc 15, construction of veryfasttree fails.  The
 relevant errors look like:
 .
        src/DiskMemory.h:17:9: error: ‘uintptr_t’ does not name a type
           17 |         uintptr_t ptr();
              |         ^~~~~~~~~
        src/DiskMemory.h:10:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
            9 | #include <string>
          +++ |+#include <cstdint>
           10 |
 .
 Applying compiler hints resolves the issue.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1098063
Forwarded: https://github.com/citiususc/veryfasttree/pull/25
Last-Update: 2025-04-06
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- veryfasttree.orig/src/DiskMemory.h
+++ veryfasttree/src/DiskMemory.h
@@ -3,6 +3,7 @@
 #ifndef VERYFASTTREE_DISKMEMORY_H
 #define VERYFASTTREE_DISKMEMORY_H
 
+#include <cstdint>
 #include <fcntl.h>
 #include <memory>
 #include <sys/mman.h>
--- veryfasttree.orig/src/NeighbourJoining.h
+++ veryfasttree/src/NeighbourJoining.h
@@ -6,6 +6,7 @@
 #include "TransitionMatrix.h"
 #include "HashTable.h"
 #include "Alignment.h"
+#include <cstdint>
 #include <vector>
 #include <list>
 #include <iostream>