[gnome-commander] src/gnome-cmd-user-actions.cc: fix for -Wimplicit-fallthrough
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] src/gnome-cmd-user-actions.cc: fix for -Wimplicit-fallthrough
- Date: Fri, 28 Apr 2017 21:44:09 +0000 (UTC)
commit 4337d73df9ae517ae8770324fcb246531b3ad5ab
Author: Mamoru TASAKA <mtasaka fedoraproject org>
Date: Tue Apr 25 12:47:19 2017 +0900
src/gnome-cmd-user-actions.cc: fix for -Wimplicit-fallthrough
src/gnome-cmd-user-actions.cc:2271:10: error: this statement may fall through
[-Werror=implicit-fallthrough=]
cmdlen = cmd->length();
src/gnome-cmd-user-actions.cc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-user-actions.cc b/src/gnome-cmd-user-actions.cc
index 3c97185..c65ddd8 100644
--- a/src/gnome-cmd-user-actions.cc
+++ b/src/gnome-cmd-user-actions.cc
@@ -2269,6 +2269,10 @@ int parse_command(string *cmd, gchar *command)
}
*cmd += '%';
cmdlen = cmd->length();
+#if defined (__GNUC__) && __GNUC__ >= 7
+ __attribute__ ((fallthrough));
+#endif
+
case '%': // %% percent sign
if (cmdcap < cmdlen + 1)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]