Menu

Warnings when building PocketSphinx on Windows 7 with Visual Studio 2015

Help
Oren G.
2018-01-06
2018-01-08
  • Oren G.

    Oren G. - 2018-01-06

    I have built SphinxBase and PocketSphinx (5pre-alpha) on Windows 7 32-bit, with Visual Studio 2015.
    I get many warnings in many files. Most of them are due to narrowing conversion, or signed/unsigned conversion, like:

    warning C4244: '=': conversion from 'float32' to 'int32', possible loss of data
    warning C4018: '>=': signed/unsigned mismatch

    There is one instance of warning C4267, in the file fe_interface.c:
    warning C4267: '+=': conversion from 'size_t' to 'int16', possible loss of data

    There are also four instances of warning C4090: 'function': different 'const' qualifiers.

    I have attached the logs.

     

    Last edit: Oren G. 2018-01-06
    • Nickolay V. Shmyrev

      Thank you for report, it would be nice for someone to fix all this, but that will probably happen in the next century.

       
  • Oren G.

    Oren G. - 2018-01-08

    I guess that the official binaries were compiled without warnings. If so, with which compiler/tools they were compiled? Do you think that compiling with VS2010 or gcc will solve the problem?

     
    • Nickolay V. Shmyrev

      No, warnings always were there, I just ignored them always.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.