Ring daemon RPM package creation error: Program returns random data in a function
Issue generated from Tuleap's migration script. Originally submitted by: szotsaki (szotsaki)
Creation of RPM package is not possible because Ring daemon has a specific type of warning (return-type) which halts RPM creation procedure. The warning is:
[ 212s] ringaccount.cpp: In function 'std::string ring::Migration::mapStateNumberToString(ring::Migration::State)': [ 212s] ringaccount.cpp:101:1: warning: control reaches end of non-void function [-Wreturn-type] [ 212s] } [ 212s] \^ [ ... ] [ 325s] I: Program returns random data in a function [ 325s] E: ring-daemon no-return-in-nonvoid-function ringaccount.cpp:101 [ 325s] [ 325s] lamb25 failed "build ring-daemon.spec" at Mon Feb 13 06:54:21 UTC 2017.
If possible, please compile all Ring modules with -Werror=return-type to halt the compilation in the second when this type of warning gets in the code because the RPM build system won't let this package to be made.