summaryrefslogtreecommitdiff
path: root/external/poppler/gcc7-EntityInfo.patch.1
blob: 1dd7c83ad475b244daf8f709a7a6b3fafd12be39 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
gcc 7.3.1 says:

workdir/UnpackedTarball/poppler/poppler/CertificateInfo.cc:42:34: error: function ‘X509CertificateInfo::EntityInfo& X509CertificateInfo::EntityInfo::operator=(X509CertificateInfo::EntityInfo&&)’ defaulted on its redeclaration with an exception-specification that differs from the implicit exception-specification ‘’

workdir/UnpackedTarball/poppler/poppler/CertificateInfo.cc: In member function ‘void X509CertificateInfo::setPublicKeyInfo(X509CertificateInfo::PublicKeyInfo&&)’:
workdir/UnpackedTarball/poppler/poppler/CertificateInfo.cc:106:39: error: use of deleted function ‘X509CertificateInfo::PublicKeyInfo& X509CertificateInfo::PublicKeyInfo::operator=(X509CertificateInfo::PublicKeyInfo&&)’
     public_key_info = std::move(pkInfo);
                                       ^
In file included from workdir/UnpackedTarball/poppler/poppler/CertificateInfo.cc:15:0:
workdir/UnpackedTarball/poppler/poppler/CertificateInfo.h:58:24: note: ‘X509CertificateInfo::PublicKeyInfo& X509CertificateInfo::PublicKeyInfo::operator=(X509CertificateInfo::PublicKeyInfo&&) noexcept’ is implicitly deleted because its exception-specification does not match the implicit exception-specification ‘’
         PublicKeyInfo &operator=(PublicKeyInfo &&) noexcept = default;
                        ^~~~~~~~

--- poppler/poppler/CertificateInfo.h.orig	2023-06-05 19:29:14.000000000 +0900
+++ poppler/poppler/CertificateInfo.h	2023-06-19 18:10:55.760031700 +0900
@@ -55,7 +55,7 @@
         PublicKeyInfo() = default;
 
         PublicKeyInfo(PublicKeyInfo &&) noexcept = default;
-        PublicKeyInfo &operator=(PublicKeyInfo &&) noexcept = default;
+        PublicKeyInfo &operator=(PublicKeyInfo &&) /*noexcept*/ = default;
 
         PublicKeyInfo(const PublicKeyInfo &) = delete;
         PublicKeyInfo &operator=(const PublicKeyInfo &) = delete;
@@ -71,7 +71,7 @@
         ~EntityInfo() = default;
 
         EntityInfo(EntityInfo &&) noexcept = default;
-        EntityInfo &operator=(EntityInfo &&) noexcept = default;
+        EntityInfo &operator=(EntityInfo &&) /*noexcept*/ = default;
 
         EntityInfo(const EntityInfo &) = delete;
         EntityInfo &operator=(const EntityInfo &) = delete;
--- poppler/poppler/GfxFont.cc.orig	2022-09-14 20:24:32.569607333 +0200
+++ poppler/poppler/GfxFont.cc	2022-09-14 20:24:52.323596186 +0200
@@ -180,7 +180,7 @@
 
 GfxFontLoc::GfxFontLoc(GfxFontLoc &&other) noexcept = default;
 
-GfxFontLoc &GfxFontLoc::operator=(GfxFontLoc &&other) noexcept = default;
+GfxFontLoc &GfxFontLoc::operator=(GfxFontLoc &&other) /*noexcept*/ = default;
 
 void GfxFontLoc::setPath(GooString *pathA)
 {
--- poppler/poppler/GfxFont.h.orig	2022-09-14 20:24:30.784608340 +0200
+++ poppler/poppler/GfxFont.h	2022-09-14 20:25:08.850586861 +0200
@@ -124,7 +124,7 @@
     GfxFontLoc(const GfxFontLoc &) = delete;
     GfxFontLoc(GfxFontLoc &&) noexcept;
     GfxFontLoc &operator=(const GfxFontLoc &) = delete;
-    GfxFontLoc &operator=(GfxFontLoc &&other) noexcept;
+    GfxFontLoc &operator=(GfxFontLoc &&other) /*noexcept*/;
 
     // Set the 'path' string from a GooString on the heap.
     // Ownership of the object is taken.