#1333 Ruby wrapper generates compiler warnings

None
closed
None
5
2013-10-18
2013-08-29
No

Compiling a generated Ruby wrapper with -Wall generates two warnings:

In function 'void SWIG_Ruby_define_class(swig_type_info)':
1517:9: warning: variable 'klass' set but not used [-Wunused-but-set-variable]
In function 'void SWIG_InitializeModule(void
)':
4423:21: warning: statement has no effect [-Wunused-value]

This is with gcc version 4.7.2 20121109 (Red Hat 4.7.2-8) (GCC)

Discussion

  • William Fulton

    William Fulton - 2013-10-18
    • status: open --> closed
    • assigned_to: William Fulton
    • Group: -->
     
  • William Fulton

    William Fulton - 2013-10-18

    I've fixed the first one, but I cannot replicate the second one. Please provide more details / reopen bug report.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks