diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2014-08-28 16:50:18 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-08-28 16:52:29 +1000 |
commit | 68d22ecf145bb9073121fd3a9fc1fdd0f880e48b (patch) | |
tree | 9d1e18155d02f292a7207de78688ffe5e24a19d0 /src | |
parent | 7d0ff39519e4d3760722b914883bee276035061c (diff) |
Silence two compiler warnings
Potentially uninitialized, false positive in both cases.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/eventcomm.c | 5 | ||||
-rw-r--r-- | src/properties.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c index 1f440b8..845f547 100644 --- a/src/eventcomm.c +++ b/src/eventcomm.c @@ -111,7 +111,10 @@ libevdev_log_func(const struct libevdev *dev, switch(priority) { case LIBEVDEV_LOG_ERROR: verbosity = 0; break; case LIBEVDEV_LOG_INFO: verbosity = 4; break; - case LIBEVDEV_LOG_DEBUG: verbosity = 10; break; + case LIBEVDEV_LOG_DEBUG: + default: + verbosity = 10; + break; } LogVMessageVerbSigSafe(X_NOTICE, verbosity, format, args); diff --git a/src/properties.c b/src/properties.c index 718d054..c776e6c 100644 --- a/src/properties.c +++ b/src/properties.c @@ -129,6 +129,7 @@ InitTypedAtom(DeviceIntPtr dev, char *name, Atom type, int format, int nvalues, converted = val_16; break; case 32: + default: converted = val_32; break; } |