GNOME Bugzilla – Bug 512860
add macro for packed attribute
Last modified: 2013-02-03 15:44:27 UTC
Like all the other gcc attributes, G_GNUC_PACKED for __attribute__((packed)).
Created attachment 103977 [details] [review] patch http://www.ohse.de/uwe/articles/gcc-attributes.html#type-packed says the attribute exists since gcc 2.7.
Created attachment 134925 [details] [review] updated patch to master
Do you have any concrete uses for this macro ? I don't think we want to add wrappers for random gcc attributes unless there is a concrete use case.
I filed this bug when I had need of the packed attribute in bug 512799 for gnome-games.
A quick grep over my gnome checkout finds the packed attribute also used in NetworkManager and Rhythmbox.
Created attachment 151047 [details] [review] updated patch to master Any chance to get this in for 2.24 ?