#265 Fix for Tcl wrapper compilation warning

closed-accepted
nobody
None
5
2011-04-27
2011-04-11
No

Compiling swig 2.0.3 Tcl wrappers with Visual C++ on Windows
now gives the following warning:

warning C4018: '<' : signed/unsigned mismatch

This patch fixes the problem:

--- Lib/tcl/tclinit.swg.rev12563 Tue Mar 29 19:57:42 2011
+++ Lib/tcl/tclinit.swg Mon Apr 11 10:14:26 2011
@@ -71,7 +71,7 @@

SWIGINTERN void
SWIG_Tcl_InstallMethodLookupTables(Tcl_Interp *interp) {
- int i;
+ size_t i;

for (i = 0; i < swig_module.size; ++i) {
swig_type_info *type = swig_module.type_initial[i];
{

Discussion

  • Christian Delbaere

    Looks like the "interp" parameter could also be removed from SWIG_Tcl_InstallMethodLookupTables() to prevent an unused variable warning with some compiler settings.

     
  • William Fulton

    William Fulton - 2011-04-27

    Thanks. Fixed in trunk rev 12635 for swig-2.0.4.

     
  • William Fulton

    William Fulton - 2011-04-27
    • status: open --> closed-accepted
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks