[tracker] libtracker-common: Remove dead code
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-common: Remove dead code
- Date: Wed, 14 Dec 2016 19:43:57 +0000 (UTC)
commit 414324416a5f26a219c409aa2516ab6338b1a2f6
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 14 19:51:15 2016 +0100
libtracker-common: Remove dead code
We made the compiler happy, but made Coverity unhappy about the
unreachable branch.
src/libtracker-common/tracker-locale.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/libtracker-common/tracker-locale.c b/src/libtracker-common/tracker-locale.c
index e76c10b..030f8be 100644
--- a/src/libtracker-common/tracker-locale.c
+++ b/src/libtracker-common/tracker-locale.c
@@ -124,9 +124,8 @@ tracker_locale_init (void)
case TRACKER_LOCALE_MONETARY:
env_locale = setlocale (LC_MONETARY, NULL);
break;
- case TRACKER_LOCALE_LAST:
- /* Make compiler happy. The for loop avoids
- * this from happening. */
+ default:
+ g_assert_not_reached ();
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]