#180 Build warnings in Hunspell 1.3.0

closed-fixed
None
5
2011-02-16
2011-01-27
No

suggestmgr.cpp(1230) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data
suggestmgr.cpp(1272) : warning C4700: uninitialized local variable 'is_swap' used

suggestmgr.cpp: In member function 'int SuggestMgr::ngsuggest(char**, char*, int, HashMgr**, int)':
suggestmgr.cpp:1272: warning: operation on 're' may be undefined

Looks like the second MSVC warning and the gcc warning are the same issue.

Discussion

  • I attach a patch to remove the warnings (but there are no bugs here). (Unfortunately, there are some CVS problem with SF.net). Thanks for your report.

     
    • assigned_to: nobody --> nemethl
     
  • Patch to switch off the warning messages

     
  • In 1.3.1, the MSVC warnings are fixed. However, the gcc warning remains.

     
  • Patch to fix the gcc warning

     
    Attachments
  • Ryan, I have attached a patch for the gcc warning. Thanks for your report.

     
  • Fixed in CVS/new release

     
    • status: open --> closed-accepted
     
    • status: closed-accepted --> closed-fixed