[gnome-commander/ConvertWarningsToErrors] src/ls_colors.cc: fix for -Wswitch-default
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander/ConvertWarningsToErrors] src/ls_colors.cc: fix for -Wswitch-default
- Date: Thu, 27 Apr 2017 20:35:12 +0000 (UTC)
commit 40b54595af3c5b3fd8f88a66d4c6f65285012fdf
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Tue Apr 25 14:38:29 2017 +0900
src/ls_colors.cc: fix for -Wswitch-default
src/ls_colors.cc:52:12: error: switch missing default case [-Werror=switch-default]
switch (code)
src/ls_colors.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/ls_colors.cc b/src/ls_colors.cc
index 8abd107..e0b5eb5 100644
--- a/src/ls_colors.cc
+++ b/src/ls_colors.cc
@@ -68,6 +68,7 @@ inline GdkColor *code2color (gint code)
case 45: return palette.magenta_bg;
case 46: return palette.cyan_bg;
case 47: return palette.white_bg;
+ default: break;
}
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]