[Spice-devel] [PATCH spice-server 2/3] glz-encoder: Remove useless __packed__ attribute
Frediano Ziglio
fziglio at redhat.com
Thu Aug 1 16:22:41 UTC 2019
ping
>
> These structure contain only bytes, no need for this attribute.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> server/glz-encoder.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/server/glz-encoder.c b/server/glz-encoder.c
> index 341294035..ee9d95ae9 100644
> --- a/server/glz-encoder.c
> +++ b/server/glz-encoder.c
> @@ -168,18 +168,18 @@ void glz_encoder_destroy(GlzEncoderContext
> *opaque_encoder)
>
> typedef uint8_t BYTE;
>
> -typedef struct __attribute__ ((__packed__)) one_byte_pixel_t {
> +typedef struct one_byte_pixel_t {
> BYTE a;
> } one_byte_pixel_t;
>
> -typedef struct __attribute__ ((__packed__)) rgb32_pixel_t {
> +typedef struct rgb32_pixel_t {
> BYTE b;
> BYTE g;
> BYTE r;
> BYTE pad;
> } rgb32_pixel_t;
>
> -typedef struct __attribute__ ((__packed__)) rgb24_pixel_t {
> +typedef struct rgb24_pixel_t {
> BYTE b;
> BYTE g;
> BYTE r;
> --
> 2.20.1
>
>
More information about the Spice-devel
mailing list