GNOME Bugzilla – Bug 736980
Non-void function should return a value
Last modified: 2014-09-28 02:58:49 UTC
Created attachment 286635 [details] [review] Fix "Non-void function should return a value" In src/main.c, function create_app should return a value. Please see the attached patch.
Review of attachment 286635 [details] [review]: Thanks! Good thing that code path should never be hit....
Attachment 286635 [details] pushed as cf54d83 - Fix "Non-void function should return a value"
Function create_app is a void function now, so we should remove the return value ...
Sometimes I wonder why this isn't an error.... The following fix has been pushed: 4abb173 Fix return value of create_app
Created attachment 287260 [details] [review] Fix return value of create_app Gah!
(In reply to comment #4) > Sometimes I wonder why this isn't an error.... This problem is an error in clang. I think we needs to add -Werror=return-type when using gcc to prevent this problem. (I found this error by compiling many GNOME modules with clang) > > The following fix has been pushed: > 4abb173 Fix return value of create_app