After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589108 - nonvoid function without return value
nonvoid function without return value
Status: RESOLVED FIXED
Product: gnome-commander
Classification: Other
Component: buildsystem
1.2.x
Other All
: Normal normal
: 1.2.9
Assigned To: epiotr
epiotr
Depends on:
Blocks:
 
 
Reported: 2009-07-20 10:17 UTC by Dominique Leuenberger
Modified: 2009-07-20 20:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2009-07-20 10:17:16 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:
Comment 1 epiotr 2009-07-20 15:58:02 UTC
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.
Comment 2 Dominique Leuenberger 2009-07-20 20:29:29 UTC
Thank you very much. Patch has been added to the openSUSE package and everything builds fine now.