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 734128 - clang fails to know that g_error() never returns
clang fails to know that g_error() never returns
Status: RESOLVED DUPLICATE of bug 741901
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-08-01 15:57 UTC by Thomas Haller
Modified: 2017-11-08 13:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (3.94 KB, patch)
2014-08-01 15:58 UTC, Thomas Haller
none Details | Review

Description Thomas Haller 2014-08-01 15:57:08 UTC
This is related to https://bugzilla.gnome.org/show_bug.cgi?id=700268 , commit  409a6db3492e8d5e81f5e248e9e9abe100506ff5.


It causes clang to generate wrong warnings, for example


int test() {
    g_error("end here");
}

causes the warning
  warning: control reaches end of non-void function [-Wreturn-type]
Comment 1 Thomas Haller 2014-08-01 15:58:18 UTC
Created attachment 282281 [details] [review]
patch
Comment 2 Philip Withnall 2017-11-08 13:13:23 UTC
Thanks for the patch, but this looks like a duplicate of bug #741901, which has since been fixed.

*** This bug has been marked as a duplicate of bug 741901 ***