From d64c241e1c95dd81b02bae60cfd0ba934ce3afe8 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sun, 26 Apr 2015 01:15:54 +0100 Subject: [PATCH] gcc-5.1 warning fixes --- Source/Modules/perl5.cxx | 2 -- Source/Modules/python.cxx | 3 --- Source/Modules/ruby.cxx | 6 ++---- Source/Modules/tcl8.cxx | 1 - 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Source/Modules/perl5.cxx b/Source/Modules/perl5.cxx index 45ed6f6e4..979f96484 100644 --- a/Source/Modules/perl5.cxx +++ b/Source/Modules/perl5.cxx @@ -13,8 +13,6 @@ #include "swigmod.h" #include "cparse.h" -static int treduce = SWIG_cparse_template_reduce(0); - #include static const char *usage = "\ diff --git a/Source/Modules/python.cxx b/Source/Modules/python.cxx index a6a81b514..532b15f4f 100644 --- a/Source/Modules/python.cxx +++ b/Source/Modules/python.cxx @@ -13,9 +13,6 @@ #include "swigmod.h" #include "cparse.h" - -static int treduce = SWIG_cparse_template_reduce(0); - #include #include #include diff --git a/Source/Modules/ruby.cxx b/Source/Modules/ruby.cxx index d484f7065..4b45b87ca 100644 --- a/Source/Modules/ruby.cxx +++ b/Source/Modules/ruby.cxx @@ -13,14 +13,12 @@ #include "swigmod.h" #include "cparse.h" -static int treduce = SWIG_cparse_template_reduce(0); - -#define SWIG_PROTECTED_TARGET_METHODS 1 - #include #include #include /* for INT_MAX */ +#define SWIG_PROTECTED_TARGET_METHODS 1 + class RClass { private: String *temp; diff --git a/Source/Modules/tcl8.cxx b/Source/Modules/tcl8.cxx index ac356098b..2e32fc808 100644 --- a/Source/Modules/tcl8.cxx +++ b/Source/Modules/tcl8.cxx @@ -13,7 +13,6 @@ #include "swigmod.h" #include "cparse.h" -static int treduce = SWIG_cparse_template_reduce(0); static const char *usage = "\ Tcl 8 Options (available with -tcl)\n\