Re: [PATCH 1/5] Add __designated_init, wrapping __attribute__((designated_init))

2014-08-01 Thread josh
On Fri, Aug 01, 2014 at 01:45:29PM -0700, Andrew Morton wrote: > On Thu, 31 Jul 2014 16:47:23 -0700 Josh Triplett > wrote: > > > GCC 4.10 and newer, and Sparse, supports > > __attribute__((designated_init)), which marks a structure as requiring > > a designated initializer rather than a position

Re: [PATCH 1/5] Add __designated_init, wrapping __attribute__((designated_init))

2014-08-01 Thread Andrew Morton
On Thu, 31 Jul 2014 16:47:23 -0700 Josh Triplett wrote: > GCC 4.10 and newer, and Sparse, supports > __attribute__((designated_init)), which marks a structure as requiring > a designated initializer rather than a positional one. This helps > reduce churn and errors when used with _ops structures