GNOME Bugzilla – Bug 741558
Add -Werror=return-type to base_error_flags
Last modified: 2014-12-15 17:59:08 UTC
Created attachment 292756 [details] [review] compiler-warnings: Add -Werror=return-type As we have got nearly 20 bug reports related to function return type mismatch in this year (searching for 'void' on https://wiki.gnome.org/Projects/Jhbuild/FreeBSD), I hope we can add -Werror=return-type to base_error_flags. Reporting the same problem in different modules repeatedly is a boring task. I know GCC still cannot catch all issues using -Werror=return-type in GCC, but having it is better than not using it.
Review of attachment 292756 [details] [review]: Seems reasonable to me. I just did a trial with jhbuild, and did not run into problems with around 100 packages. When you push, please make sure to bump the M4 serial in the file.
(In reply to comment #1) > Review of attachment 292756 [details] [review]: > > Seems reasonable to me. I just did a trial with jhbuild, and did not run into > problems with around 100 packages. Yes, problems in most packages are already fixed. > When you push, please make sure to bump the > M4 serial in the file. Do you mean I should change it to 'serial 3'?
(In reply to comment #2) > (In reply to comment #1) > > When you push, please make sure to bump the > > M4 serial in the file. > > Do you mean I should change it to 'serial 3'? Yes, please!
Pushed to master - https://git.gnome.org/browse/gnome-common/commit/?id=334bb90c5bcf96105aed8eac464bb296bf1aa9c9