GolosChain / golos

Socio-economic mediablockchain
https://developers.golos.io
Other
59 stars 36 forks source link

disable compilation warnings #382

Closed kotbegemot closed 6 years ago

kotbegemot commented 6 years ago

disable compilation warnings.

/usr/local/src/golos/libraries/fc/include/fc/exception/exception.hpp:299:72: warning: character constant too long for its type
     typedef basic_exception<timeout_exception_code, boost::mpl::string<'Timeout'>> timeout_exception;
                                                                        ^
/usr/local/src/golos/libraries/fc/include/fc/exception/exception.hpp:302:32: warning: character constant too long for its type
             boost::mpl::string<'File Not Found'>> file_not_found_exception;
                                                                    ^
/Users/kotbegemot/ClionProjects/golos_16_5/libraries/plugins/blockchain_statistics/plugin.cpp:518:13: warning: variable 'statsd_default_port' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
        if (options.count("statsd-default-port")) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/kotbegemot/ClionProjects/golos_16_5/libraries/plugins/blockchain_statistics/plugin.cpp:521:85: note: uninitialized use occurs here
        _my->stat_sender = std::shared_ptr<statistics_sender>(new statistics_sender(statsd_default_port) );
                                                                                    ^~~~~~~~~~~~~~~~~~~
/Users/kotbegemot/ClionProjects/golos_16_5/libraries/plugins/blockchain_statistics/plugin.cpp:518:9: note: remove the 'if' if its condition is always true
        if (options.count("statsd-default-port")) {
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/kotbegemot/ClionProjects/golos_16_5/libraries/plugins/blockchain_statistics/plugin.cpp:516:37: note: initialize the variable 'statsd_default_port' to silence this warning
        uint32_t statsd_default_port;
                                    ^
                                     = 0
[ 88%] Building CXX object libraries/plugins/social_network/CMakeFiles/golos_social_network.dir/social_network.cpp.o
/Users/kotbegemot/ClionProjects/golos_16_5/libraries/plugins/social_network/language_visitor.cpp:10:25: warning: field 'db_' will be initialized after field 'cache_languages_' [-Wreorder]
                        db_(db_),
kotbegemot commented 6 years ago

https://github.com/GolosChain/golos/pull/404