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 793555 - [PATCH] -Wimplicit-function-declaration when using g_abort()
[PATCH] -Wimplicit-function-declaration when using g_abort()
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2018-02-18 02:47 UTC by bob
Modified: 2018-02-19 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-gutils-fix-missing-include.patch (801 bytes, patch)
2018-02-18 02:47 UTC, bob
committed Details | Review

Description bob 2018-02-18 02:47:00 UTC
Created attachment 368510 [details] [review]
0001-gutils-fix-missing-include.patch

stdlib.h never gets included in gutils.h (at least on my system), so using the g_abort macro results in compiler warnings about an implicitly declared abort(). A one-line patch is attached, but reading #665446 makes me think it might be a bit more complicated than I've realised.
Comment 1 Philip Withnall 2018-02-19 11:35:20 UTC
Review of attachment 368510 [details] [review]:

OK.
Comment 2 Philip Withnall 2018-02-19 11:36:38 UTC
Pushed to master.