Eliminate __attribute__ ((packed)) warnings for gcc-4.1 (whitespace-beautified version)

linux

Eliminate __attribute__ ((packed)) warnings for gcc-4.1 (whitespace-beautified version)

Postby Jan Blunck » Thu, 05 Jan 2006 20:00:15 GMT

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to  XXXX@XXXXX.COM 
More majordomo info at   http://www.**--****.com/ 
Please read the FAQ at   http://www.**--****.com/ 
Since version 4.1 the gcc is warning about ignored attributes. This patch is
using the equivalent attribute on the struct instead of on each of the
structure or union members.

GCC Manual:
 "Specifying Attributes of Types

  packed
   This attribute, attached to struct or union type definition, specifies
   that
   each member of the structure or union is placed to minimize the memory
   required. When attached to an enum definition, it indicates that the
   smallest integral type should be used.

   Specifying this attribute for struct and union types is equivalent to
   specifying the packed attribute on each of the structure or union
   members."

Signed-off-by: Jan Blunck < XXXX@XXXXX.COM >




Return to linux

 

Who is online

Users browsing this forum: No registered users and 32 guest