GNOME Bugzilla – Bug 589108
nonvoid function without return value
Last modified: 2009-07-20 20:29:29 UTC
Please describe the problem: while compiling gnome-commander 1.2.8, the openSUSE BuildService 'burps' with the following error (raises a warning to an error): I: Program returns random data in a function E: gnome-commander no-return-in-nonvoid-function gnome-cmd-convert.cc:299, 246 the compiler itself warned with: gnome-cmd-convert.cc: In function 'gchar* gcmd_convert_sentence_case(gchar*)': gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc:167: warning: deprecated conversion from string constant to 'gchar*' gnome-cmd-convert.cc: In function 'gchar* gcmd_convert_initial_caps(gchar*)': gnome-cmd-convert.cc:299: warning: control reaches end of non-void function gnome-cmd-convert.cc: In function 'gchar* gcmd_convert_sentence_case(gchar*)': gnome-cmd-convert.cc:246: warning: control reaches end of non-void function Steps to reproduce: Compile the code Actual results: I get the warning about undefined code. openSUSE BuildService raises those warnings to Errors and publishing is disabled. Expected results: No warnings of said type while compiling. Does this happen every time? Other information:
This problem has been fixed in our software repository (http://git.gnome.org/cgit/gnome-commander/patch/?id=7b21efe951abfbcf7da3c548173db2c5a0c28893). The fix will go into the next software release. Thank you for your bug report.
Thank you very much. Patch has been added to the openSUSE package and everything builds fine now.