From e15cf1ac2da8a0c57af862a2a41d2ea772acf925 Mon Sep 17 00:00:00 2001 From: Mario Emmenlauer Date: Thu, 10 Nov 2022 16:16:41 +0100 Subject: Lib/csharp: Resolve a few warnings about unused parameters --- Lib/csharp/std_map.i | 3 ++- Lib/csharp/std_set.i | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'Lib') diff --git a/Lib/csharp/std_map.i b/Lib/csharp/std_map.i index 7a118569a..93cfb1e59 100644 --- a/Lib/csharp/std_map.i +++ b/Lib/csharp/std_map.i @@ -269,12 +269,14 @@ } const key_type& get_next_key(std::map< K, T, C >::iterator *swigiterator) { + (void)self; std::map< K, T, C >::iterator iter = *swigiterator; (*swigiterator)++; return (*iter).first; } void destroy_iterator(std::map< K, T, C >::iterator *swigiterator) { + (void)self; delete swigiterator; } } @@ -309,4 +311,3 @@ 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) #warning "specialize_std_map_on_both ignored - macro is deprecated and no longer necessary" %enddef - diff --git a/Lib/csharp/std_set.i b/Lib/csharp/std_set.i index 012152260..ce329e26c 100644 --- a/Lib/csharp/std_set.i +++ b/Lib/csharp/std_set.i @@ -297,12 +297,14 @@ class set { } const key_type& get_next(std::set::iterator *swigiterator) { + (void)self; std::set::iterator iter = *swigiterator; (*swigiterator)++; return *iter; } void destroy_iterator(std::set::iterator *swigiterator) { + (void)self; delete swigiterator; } } -- cgit v1.2.1 From 327ba13f4cdbc7d3c1f6bc0124bdd6b27135891c Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Fri, 24 Mar 2023 19:47:04 +0000 Subject: Use $self instead of self --- Lib/csharp/std_map.i | 4 ++-- Lib/csharp/std_set.i | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'Lib') diff --git a/Lib/csharp/std_map.i b/Lib/csharp/std_map.i index 93cfb1e59..e7a910f65 100644 --- a/Lib/csharp/std_map.i +++ b/Lib/csharp/std_map.i @@ -269,14 +269,14 @@ } const key_type& get_next_key(std::map< K, T, C >::iterator *swigiterator) { - (void)self; + (void)$self; std::map< K, T, C >::iterator iter = *swigiterator; (*swigiterator)++; return (*iter).first; } void destroy_iterator(std::map< K, T, C >::iterator *swigiterator) { - (void)self; + (void)$self; delete swigiterator; } } diff --git a/Lib/csharp/std_set.i b/Lib/csharp/std_set.i index ce329e26c..ec8a3dc5e 100644 --- a/Lib/csharp/std_set.i +++ b/Lib/csharp/std_set.i @@ -297,14 +297,14 @@ class set { } const key_type& get_next(std::set::iterator *swigiterator) { - (void)self; + (void)$self; std::set::iterator iter = *swigiterator; (*swigiterator)++; return *iter; } void destroy_iterator(std::set::iterator *swigiterator) { - (void)self; + (void)$self; delete swigiterator; } } -- cgit v1.2.1