| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
| 0010207 | ITK | public | 2010-01-29 17:16 | 2010-04-01 22:01 | |||||
| Reporter | Hans Johnson | ||||||||
| Assigned To | Gaetan Lehmann | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | closed | Resolution | fixed | ||||||
| Platform | OS | OS Version | |||||||
| Product Version | ITK-3-16 | ||||||||
| Target Version | Fixed in Version | ITK-3-16 | |||||||
| Summary | 0010207: Minor change to cable swig to silence 100's of compiler warnings | ||||||||
| Description | Our builds of ITK are causing 100's of compiler warnings when wrapping is turned on. We've identified a work around that seems to work properly (all tests pass), and it also silences all the warnings. Index: Utilities/CableSwig/SWIG/Source/Modules/tcl8.cxx =================================================================== RCS file: /cvsroot/CableSwig/CableSwig/SWIG/Source/Modules/tcl8.cxx,v retrieving revision 1.6 diff -r1.6 tcl8.cxx 514c514 < Printf(df->code,"Tcl_SetResult(interp, \"No matching function for overloaded '%s'\", TCL_STATIC);\n", iname); --- > Printf(df->code,"Tcl_SetObjResult(interp, Tcl_NewStringObj(\"No matching function for overloaded '%s'\", -1));\n", iname); We would greatly appreciate it if this patch could be applied. Thanks, Hans | ||||||||
| Additional Information | [ 28%] Built target brains3_real [ 36%] Built target test_wrapper_scripts Scanning dependencies of target ItkBrainsGlueTcl [ 36%] Building CXX object src/IPLtoITKcmd/ItkBrainsGlue/Wrapping/CMakeFiles/ItkBrainsGlueTcl.dir/wrap_ItkBrainsGlueTclTcl.cxx.o [ 36%] Building CXX object src/IPLtoITKcmd/ItkBrainsGlue/Wrapping/CMakeFiles/ItkBrainsGlueTcl.dir/wrap_itkBrainsLabelStatisticsImageFilterTcl.cxx.o /.../BRAINS-COMPILE/Linux/FAST-build/BRAINS3-build/src/IPLtoITKcmd/ItkBrainsGlue/Wrapping/wrap_itkBrainsLabelStatisticsImageFilterTcl.cxx: In function `int _wrap_itkBrainsLabelStatisticsImageFilterIF2IUC2_GetNameOfClass(void*, Tcl_Interp*, int, Tcl_Obj* const*)': /.../BRAINS-COMPILE/Linux/FAST-build/BRAINS3-build/src/IPLtoITKcmd/ItkBrainsGlue/Wrapping/wrap_itkBrainsLabelStatisticsImageFilterTcl.cxx:1387: warning: cast from `const char*' to `char*' discards qualifiers from pointer target type /.../BRAINS-COMPILE/Linux/FAST-build/BRAINS3-build/src/IPLtoITKcmd/ItkBrainsGlue/Wrapping/wrap_itkBrainsLabelStatisticsImageFilterTcl.cxx: In function `int _wrap_itkBrainsLabelStatisticsImageFilterIUC3ISS3_GetNameOfClass(void*, Tcl_Interp*, int, Tcl_Obj* const*)': | ||||||||
| Tags | No tags attached. | ||||||||
| Resolution Date | |||||||||
| Sprint | |||||||||
| Sprint Status | |||||||||
| Attached Files | |||||||||
| Relationships | |
| Relationships |
| Notes | |
|
(0019383) Brad King (manager) 2010-02-01 08:21 |
Gaetan committed this as SWIG/Source/Modules/tcl8.cxx revision 1.7. COMP: Bug 0010207. Fix warning: cast from 'const char*' to 'char*' discards qualifiers from pointer target type. Patch from Hans Johnson. |
|
(0019384) Brad King (manager) 2010-02-01 08:22 |
I don't remember enough about the Tcl object API off the top of my head. Are you sure this doesn't leak the Tcl string object? |
|
(0020057) Hans Johnson (developer) 2010-04-01 22:01 |
This seems to be working well for over two months. It has silences 100's of warnings. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| 2010-01-29 17:16 | Hans Johnson | New Issue | |
| 2010-01-30 09:55 | Luis Ibanez | Status | new => assigned |
| 2010-01-30 09:55 | Luis Ibanez | Assigned To | => Luis Ibanez |
| 2010-01-30 10:13 | Luis Ibanez | Assigned To | Luis Ibanez => Brad King |
| 2010-02-01 08:20 | Brad King | Assigned To | Brad King => Gaetan Lehmann |
| 2010-02-01 08:21 | Brad King | Note Added: 0019383 | |
| 2010-02-01 08:22 | Brad King | Note Added: 0019384 | |
| 2010-04-01 22:01 | Hans Johnson | Note Added: 0020057 | |
| 2010-04-01 22:01 | Hans Johnson | Status | assigned => closed |
| 2010-04-01 22:01 | Hans Johnson | Resolution | open => fixed |
| 2010-04-01 22:01 | Hans Johnson | Fixed in Version | => ITK-3-16 |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |