[Spice-commits] 2 commits - common/vdlog.h mingw-spice-vdagent.spec.in

Frediano Ziglio fziglio at kemper.freedesktop.org
Mon Jul 10 12:21:29 UTC 2017


 common/vdlog.h              |    8 ++++----
 mingw-spice-vdagent.spec.in |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 61830ede2dcc85600b5de9647ec9fbbc83437d1b
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Nov 17 16:00:50 2016 +0000

    Avoid log_level warning using a static const
    
    Compiler warnings for unused static variable.
    Not for constants.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/common/vdlog.h b/common/vdlog.h
index 6d0413b..e645409 100644
--- a/common/vdlog.h
+++ b/common/vdlog.h
@@ -41,18 +41,18 @@ private:
     FILE* _handle;
 };
 
-enum {
+typedef enum {
   LOG_DEBUG,
   LOG_INFO,
   LOG_WARN,
   LOG_ERROR,
   LOG_FATAL
-};
+} VDLogLevel;
 
 #ifdef _DEBUG
-static unsigned int log_level = LOG_DEBUG;
+static const VDLogLevel log_level = LOG_DEBUG;
 #else
-static unsigned int log_level = LOG_INFO;
+static const VDLogLevel log_level = LOG_INFO;
 #endif
 
 #define PRINT_LINE(type, format, datetime, ms, ...)                     \
commit e1786ee7f6fdd4508c5f4720b9d134cd7a6753d7
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Thu Jul 6 14:24:19 2017 +0100

    Enable debug information build on spec file
    
    The spec file cause the generation of debuginfo packages however
    the build fails as the executables are not compiled with debugging
    information.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Pavel Grunt <pgrunt at redhat.com>

diff --git a/mingw-spice-vdagent.spec.in b/mingw-spice-vdagent.spec.in
index 3f8d4f7..563341d 100644
--- a/mingw-spice-vdagent.spec.in
+++ b/mingw-spice-vdagent.spec.in
@@ -76,7 +76,7 @@ Features:
 %{mingw_debug_package}
 
 %build
-%mingw_configure
+%mingw_configure --enable-debug
 %mingw_make %{?_smp_mflags} V=1
 
 


More information about the Spice-commits mailing list