summaryrefslogtreecommitdiff
path: root/media-sound/mp3check/files/mp3check-0.8.7-fix-c++14-operator-delete.patch
blob: de19421ac57ba7bdce6fa0b2cf53bf175d6e20ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
https://bugs.gentoo.org/685880
tstring.cc: In static member function ‘static tstring::Rep* tstring::Rep::create(size_t)’:
tstring.cc:114:39: error: exception cleanup for this placement new selects non-placement operator delete [-fpermissive]
  114 |    Rep *p = new (m - 1 - sizeof(Rep)) Rep;
      |                                       ^~~
In file included from tstring.cc:26:

--- a/tstring.h
+++ b/tstring.h
@@ -75,6 +75,9 @@
 	 return ::operator new (size + tmem + 1);}
       static void operator delete (void *p, size_t) {
 	 ::operator delete (p); }
+      // Gentoo Bug #685880
+      static void operator delete (void *p) {
+        ::operator delete (p); }
       
       // create a new representation
       static Rep *create(size_t tmem);