On Thu, 2017-07-06 at 14:31 +0100, Frediano Ziglio wrote: > Compiler warnings for unused static variable. > Not for constants. > > Signed-off-by: Frediano Ziglio <fzig...@redhat.com> Acked-by: Pavel Grunt <pgr...@redhat.com> > --- > common/vdlog.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > 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, ...) \ _______________________________________________ Spice-devel mailing list Spice-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/spice-devel
- [Spice-devel] [vdagent-win PATCH 0/7] Rewrite image suppor... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH 3/7] Move image hand... Frediano Ziglio
- Re: [Spice-devel] [vdagent-win PATCH 3/7] Move im... Pavel Grunt
- Re: [Spice-devel] [vdagent-win PATCH 3/7] Mov... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH 4/7] Initial rewrite... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH v2 4/7] Initial ... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH 1/7] Enable debug in... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH 2/7] Avoid log_level... Frediano Ziglio
- Re: [Spice-devel] [vdagent-win PATCH 2/7] Avoid l... Pavel Grunt
- [Spice-devel] [vdagent-win RFC PATCH 7/7] RFC: Add te... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH 6/7] Support encodin... Frediano Ziglio
- [Spice-devel] [vdagent-win PATCH 5/7] Write code to d... Frediano Ziglio
- Re: [Spice-devel] [vdagent-win PATCH 0/7] Rewrite ima... Uri Lublin
- Re: [Spice-devel] [vdagent-win PATCH 0/7] Rewrite ima... Uri Lublin
- Re: [Spice-devel] [vdagent-win PATCH 0/7] Rewrite... Frediano Ziglio
- Re: [Spice-devel] [vdagent-win PATCH 0/7] Rew... Uri Lublin
- Re: [Spice-devel] [vdagent-win PATCH 0/7]... Frediano Ziglio