Menu

#1154 New warnings compiling SWIG Tcl wrap

None
closed-fixed
nobody
tcl (60)
5
2022-02-02
2011-04-11
No

They seem all related to the hash table patch:

1: src/acc_wrap.c:2006:1: warning: missing initializer
src/acc_wrap.c:2006:1: warning: (near initialization for ‘_wrap_class_AccFileList.hashtable’)

- where "AccFileList" is a simple structure; it repeats for more structures in my C code;

2,3: src/acc_wrap.c: In function ‘SWIG_Tcl_InstallMethodLookupTables’:
src/acc_wrap.c:9826:19: warning: comparison between signed and unsigned integer expressions
src/acc_wrap.c:9823:50: warning: unused parameter ‘interp’

- it talks about these lines:
SWIG_Tcl_InstallMethodLookupTables(Tcl_Interp *interp) {
int i;

for (i = 0; i < swig_module.size; ++i) ...

Discussion

  • Olly Betts

    Olly Betts - 2022-02-02
    • status: open --> closed-fixed
    • Group: -->
     
  • Olly Betts

    Olly Betts - 2022-02-02

    There's no interface file provided so I can't 100% confirm these are fixed, but I'm going to close this as it very much looks to me like 1 was fixed by:

    commit e9176365751d41c5ff9faa7074d1b48acf3fc59e
    Author: William S Fulton <wsf@fultondesigns.co.uk>
    Date:   Sat Dec 19 14:53:11 2015 +0000
    
        Tcl fix when using -Wmissing-field-initializers warnings
    
        Only fixed for Tcl >= 8.5 as prior to this version the Tcl_HashTable structure
        changed a few times.
    

    and 2 and 3 were fixed by:

    commit c871172975078e31756588cf9b91bb685cd0f641
    Author: William S Fulton <wsf@fultondesigns.co.uk>
    Date:   Mon Apr 11 23:04:28 2011 +0000
    
        Apply patch #3284326 to fix some compiler warnings.
    
        git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12635 626c5289-ae23-0410-ae9c-e8d60b6d4f22
    
     

Log in to post a comment.