GNOME Bugzilla – Bug 745821
Don't use __alloc_size__ attribute with clang
Last modified: 2015-08-10 15:06:18 UTC
It is not implemented and produces unknown attribute warnings. A simple patch to solve this was already posted on gtk-devel mailing list: https://mail.gnome.org/archives/gtk-devel-list/2014-November/msg00015.html
Created attachment 299598 [details] [review] Fix Sorry I did not open a ticket myself and thanks for doing that! Attaching the patch directly as the ml archive may have mangled the patch.
Created attachment 301250 [details] [review] gmacros: Properly silence Clang's -Wunknown-attributes The code in master still triggers the warning
This issue is already solved on master (differently): https://git.gnome.org/browse/glib/commit/?id=42870201f8cd304d9e38b1b99d63a407dc9ae107 https://git.gnome.org/browse/glib/commit/?id=b0e330b68c161adfc5cffededd6703b6450562d5
lets close it, then