diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2016-05-27 23:20:40 +0100 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2016-05-28 00:45:24 +0100 |
commit | 624195f313189d12edaea24f7412dab93d89460c (patch) | |
tree | 7349fa291f814f9b19c281a64e8e7761c4e557ad /Lib/guile | |
parent | 06c47fbcdc4d9b8c0b61123d6320809f8f071120 (diff) | |
download | swig-624195f313189d12edaea24f7412dab93d89460c.tar.gz |
Fix unused variable warnings in Guile wrappers
Diffstat (limited to 'Lib/guile')
-rw-r--r-- | Lib/guile/std_map.i | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/Lib/guile/std_map.i b/Lib/guile/std_map.i index fefbe2e77..489acc187 100644 --- a/Lib/guile/std_map.i +++ b/Lib/guile/std_map.i @@ -41,7 +41,7 @@ namespace std { template<class K, class T> class map { - %typemap(in) map<K,T> (std::map<K,T>* m) { + %typemap(in) map<K,T> { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -72,10 +72,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map<K,T>& (std::map<K,T> temp, - std::map<K,T>* m), - const map<K,T>* (std::map<K,T> temp, - std::map<K,T>* m) { + %typemap(in) const map<K,T>& (std::map<K,T> temp), + const map<K,T>* (std::map<K,T> temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; @@ -266,7 +264,7 @@ namespace std { %define specialize_std_map_on_key(K,CHECK,CONVERT_FROM,CONVERT_TO) template<class T> class map<K,T> { - %typemap(in) map<K,T> (std::map<K,T>* m) { + %typemap(in) map<K,T> { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -298,10 +296,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map<K,T>& (std::map<K,T> temp, - std::map<K,T>* m), - const map<K,T>* (std::map<K,T> temp, - std::map<K,T>* m) { + %typemap(in) const map<K,T>& (std::map<K,T> temp), + const map<K,T>* (std::map<K,T> temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; @@ -480,7 +476,7 @@ namespace std { %define specialize_std_map_on_value(T,CHECK,CONVERT_FROM,CONVERT_TO) template<class K> class map<K,T> { - %typemap(in) map<K,T> (std::map<K,T>* m) { + %typemap(in) map<K,T> { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -511,10 +507,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map<K,T>& (std::map<K,T> temp, - std::map<K,T>* m), - const map<K,T>* (std::map<K,T> temp, - std::map<K,T>* m) { + %typemap(in) const map<K,T>& (std::map<K,T> temp), + const map<K,T>* (std::map<K,T> temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; @@ -567,7 +561,6 @@ namespace std { K* k; SCM head = SCM_CAR($input); if (scm_is_pair(head)) { - SCM key = SCM_CAR(head); SCM val = SCM_CDR(head); if (SWIG_ConvertPtr(val,(void **) &k, $descriptor(K *), 0) != 0) { @@ -609,7 +602,6 @@ namespace std { K* k; SCM head = SCM_CAR($input); if (scm_is_pair(head)) { - SCM key = SCM_CAR(head); SCM val = SCM_CDR(head); if (SWIG_ConvertPtr(val,(void **) &k, $descriptor(K *), 0) != 0) { @@ -692,7 +684,7 @@ namespace std { %define specialize_std_map_on_both(K,CHECK_K,CONVERT_K_FROM,CONVERT_K_TO, T,CHECK_T,CONVERT_T_FROM,CONVERT_T_TO) template<> class map<K,T> { - %typemap(in) map<K,T> (std::map<K,T>* m) { + %typemap(in) map<K,T> { if (scm_is_null($input)) { $1 = std::map< K, T >(); } else if (scm_is_pair($input)) { @@ -725,10 +717,8 @@ namespace std { SWIG_MustGetPtr($input,$&1_descriptor,$argnum, 0)); } } - %typemap(in) const map<K,T>& (std::map<K,T> temp, - std::map<K,T>* m), - const map<K,T>* (std::map<K,T> temp, - std::map<K,T>* m) { + %typemap(in) const map<K,T>& (std::map<K,T> temp), + const map<K,T>* (std::map<K,T> temp) { if (scm_is_null($input)) { temp = std::map< K, T >(); $1 = &temp; |