[med-svn] r10630 - trunk/packages/maqview/trunk/debian/patches

Andreas Tille tille at alioth.debian.org
Fri Apr 27 21:55:34 UTC 2012


Author: tille
Date: 2012-04-27 21:55:33 +0000 (Fri, 27 Apr 2012)
New Revision: 10630

Added:
   trunk/packages/maqview/trunk/debian/patches/gcc-4.7.patch
Log:
Forgot to commit ...


Added: trunk/packages/maqview/trunk/debian/patches/gcc-4.7.patch
===================================================================
--- trunk/packages/maqview/trunk/debian/patches/gcc-4.7.patch	                        (rev 0)
+++ trunk/packages/maqview/trunk/debian/patches/gcc-4.7.patch	2012-04-27 21:55:33 UTC (rev 10630)
@@ -0,0 +1,40 @@
+Author: Andreas Tille <tille at debian.org>
+Date: Wed, 25 Apr 2012 14:20:16 +0200
+Bug-Closed: http://bugs.debian.org/667270
+Description: Build with g++ version 4.7
+ Just followed the hint of g++ itself which said:
+    note: use 'this->direct_insert_aux' instead
+ .
+ Remark: This patch is identicall to the one applied
+ in the source of the maq package (because the file
+ is identical there)
+
+--- maqview-0.2.5.orig/stdhash.hh
++++ maqview-0.2.5/stdhash.hh
+@@ -412,7 +412,7 @@
+ 	inline bool insert(const keytype_t &key) {
+ 		__lh3_hash_base_class<keytype_t>::rehash();
+ 		hashint_t i;
+-		int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
++		int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
+ 		if (ret == 0) return true;
+ 		if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
+ 		else ++(this->n_size); // then ret == 2
+@@ -493,7 +493,7 @@
+ 	inline bool insert(const keytype_t &key, const valtype_t &val) {
+ 		rehash();
+ 		hashint_t i;
+-		int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
++		int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
+ 		vals[i] = val;
+ 		if (ret == 0) return true;
+ 		if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }
+@@ -503,7 +503,7 @@
+ 	inline bool insert(const keytype_t &key, valtype_t **q) {
+ 		rehash();
+ 		hashint_t i;
+-		int ret = direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
++		int ret = this->direct_insert_aux(key, this->n_capacity, this->keys, this->flags, &i);
+ 		*q = vals + i;
+ 		if (ret == 0) return true;
+ 		if (ret == 1) { ++(this->n_size); ++(this->n_occupied); }




More information about the debian-med-commit mailing list