[Spice-devel] [PATCH] Revert "dcc: remove not necessary volatile specifications"

Jonathon Jongsma jjongsma at redhat.com
Mon Feb 15 16:09:04 UTC 2016


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

We can come up with a better solution later.


On Mon, 2016-02-15 at 16:07 +0000, Frediano Ziglio wrote:
> This reverts commit efe5a0c501d157566522f87a394e29c5290e2185.
> 
> Due to a problem in the compiler this causes compile to fail.
> ---
>  server/dcc.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/server/dcc.c b/server/dcc.c
> index 9a4e90c..72a7130 100644
> --- a/server/dcc.c
> +++ b/server/dcc.c
> @@ -848,9 +848,9 @@ static int dcc_compress_image_jpeg(DisplayChannelClient
> *dcc, SpiceImage *dest,
>      LzData *lz_data = &dcc->lz_data;
>      JpegEncoderContext *jpeg = dcc->jpeg;
>      LzContext *lz = dcc->lz;
> -    JpegEncoderImageType jpeg_in_type;
> +    volatile JpegEncoderImageType jpeg_in_type;
>      int jpeg_size = 0;
> -    int has_alpha = FALSE;
> +    volatile int has_alpha = FALSE;
>      int alpha_lz_size = 0;
>      int comp_head_filled;
>      int comp_head_left;
> @@ -1016,7 +1016,7 @@ static int dcc_compress_image_quic(DisplayChannelClient
> *dcc, SpiceImage *dest,
>  {
>      QuicData *quic_data = &dcc->quic_data;
>      QuicContext *quic = dcc->quic;
> -    QuicImageType type;
> +    volatile QuicImageType type;
>      int size, stride;
>      stat_start_time_t start_time;
>      stat_start_time_init(&start_time, &DCC_TO_DC(dcc)->quic_stat);


More information about the Spice-devel mailing list