From 199e1c70e8ed688147e356d42c4f2043c245a874 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Tue, 17 Apr 2012 17:13:09 +0000 Subject: Fix build with gcc 4.7, bug 412353 by . (Portage version: 2.2.0_alpha100/cvs/Linux x86_64) --- app-crypt/qca/files/qca-2.0.3+gcc-4.7.patch | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 app-crypt/qca/files/qca-2.0.3+gcc-4.7.patch (limited to 'app-crypt/qca/files') diff --git a/app-crypt/qca/files/qca-2.0.3+gcc-4.7.patch b/app-crypt/qca/files/qca-2.0.3+gcc-4.7.patch new file mode 100644 index 000000000000..1752dff910ff --- /dev/null +++ b/app-crypt/qca/files/qca-2.0.3+gcc-4.7.patch @@ -0,0 +1,59 @@ +--- trunk/kdesupport/qca/src/botantools/botan/botan/secmem.h 2012/01/14 16:09:19 1273507 ++++ trunk/kdesupport/qca/src/botantools/botan/botan/secmem.h 2012/01/14 17:12:15 1273508 +@@ -191,15 +191,15 @@ + { + public: + MemoryVector& operator=(const MemoryRegion& in) +- { if(this != &in) set(in); return (*this); } ++ { if(this != &in) this->set(in); return (*this); } + + MemoryVector(u32bit n = 0) { MemoryRegion::init(false, n); } + MemoryVector(const T in[], u32bit n) +- { MemoryRegion::init(false); set(in, n); } ++ { MemoryRegion::init(false); this->set(in, n); } + MemoryVector(const MemoryRegion& in) +- { MemoryRegion::init(false); set(in); } ++ { MemoryRegion::init(false); this->set(in); } + MemoryVector(const MemoryRegion& in1, const MemoryRegion& in2) +- { MemoryRegion::init(false); set(in1); append(in2); } ++ { MemoryRegion::init(false); this->set(in1); append(in2); } + }; + + /************************************************* +@@ -210,15 +210,15 @@ + { + public: + SecureVector& operator=(const MemoryRegion& in) +- { if(this != &in) set(in); return (*this); } ++ { if(this != &in) this->set(in); return (*this); } + + SecureVector(u32bit n = 0) { MemoryRegion::init(true, n); } + SecureVector(const T in[], u32bit n) +- { MemoryRegion::init(true); set(in, n); } ++ { MemoryRegion::init(true); this->set(in, n); } + SecureVector(const MemoryRegion& in) +- { MemoryRegion::init(true); set(in); } ++ { MemoryRegion::init(true); this->set(in); } + SecureVector(const MemoryRegion& in1, const MemoryRegion& in2) +- { MemoryRegion::init(true); set(in1); append(in2); } ++ { MemoryRegion::init(true); this->set(in1); append(in2); } + }; + + /************************************************* +@@ -229,14 +229,14 @@ + { + public: + SecureBuffer& operator=(const SecureBuffer& in) +- { if(this != &in) set(in); return (*this); } ++ { if(this != &in) this->set(in); return (*this); } + + SecureBuffer() { MemoryRegion::init(true, L); } + SecureBuffer(const T in[], u32bit n) + { MemoryRegion::init(true, L); copy(in, n); } + private: + SecureBuffer& operator=(const MemoryRegion& in) +- { if(this != &in) set(in); return (*this); } ++ { if(this != &in) this->set(in); return (*this); } + }; + + } -- cgit v1.2.3-65-gdbad