GNOME Bugzilla – Bug 539962
Void function cannot return value with sun cc
Last modified: 2018-06-29 22:06:07 UTC
I'm build gnucash trunk (r17246) with sun cc under Solaris, but get following fails : "dialog-transfer.c", line 260: void function cannot return value
It's not returning a value. gnc_xfer_dialog_update_price() is a function returning void, so return gnc_xfer_dialog_update_price() is perfectly legal. I highly suggest you use a better compiler, like GCC.
Like bug #539957, make gnucash buildable with other compiler like sun cc is always good. I already finish the patch, will offer later.
Created attachment 113335 [details] [review] patch for bug #539962 return value in void function make no sense. This will cause sun cc build fail. Please check the patch, if it is okay, can I commit?
Looks reasonable. I am not sure you have commit access though, so I will do that later.
(In reply to comment #4) > Looks reasonable. > I am not sure you have commit access though, so I will do that later. > I do not have it though, read http://wiki.gnucash.org/wiki/Subversion#SVN_write_access, I need get reputation first. :) Please go ahead to commit it, thanks.
Applied to trunk as r17496 and branches/2.2 as 17545 for inclusion in GnuCash 2.2.7. Thanks a lot!
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=539962. Please update any external references or bookmarks.