<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Make failed when uncommented COMPRESS_STAT in red_worker.c"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79246#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Make failed when uncommented COMPRESS_STAT in red_worker.c"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79246">bug 79246</a>
              from <span class="vcard"><a class="email" href="mailto:wangqiang.hunan@gmail.com" title="Qiang Wang <wangqiang.hunan@gmail.com>"> <span class="fn">Qiang Wang</span></a>
</span></b>
        <pre>This error because of some simple syntax errors.
So a add this patch

Signed-off-by: Wang Qiang <<a href="mailto:wangqiang.hunan@gmail.com">wangqiang.hunan@gmail.com</a>>
---
 server/red_worker.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/red_worker.c b/server/red_worker.c
index 1871e13..6e4ba54 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -257,7 +257,7 @@ static inline void stat_compress_add(stat_info_t *info,
stat_time_t start, int o
     info->comp_size += comp_size;
 }

-double inline stat_byte_to_mega(uint64_t size)
+static inline double stat_byte_to_mega(uint64_t size)
 {
     return (double)size / (1000 * 1000);
 }
@@ -1152,7 +1152,7 @@ static void print_compress_stats(DisplayChannel
*display_channel)
                        display_channel->zlib_glz_stat.comp_size :
                        display_channel->glz_stat.comp_size;

-    spice_info("==> Compression stats for display %u",
display_channel->common.id);
+    spice_info("==> Compression stats for display %u",
display_channel->common.base.id);
     spice_info("Method   \t  count 
\torig_size(MB)\tenc_size(MB)\tenc_time(s)");
     spice_info("QUIC     \t%8d\t%13.2f\t%12.2f\t%12.2f",
                display_channel->quic_stat.count,
-- 
1.9.1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>