From 51cd9cb8996fd5fef4d760f998a311214040382d Mon Sep 17 00:00:00 2001
From: "Yury V. Zaytsev" <yury@shurup.com>
Date: Thu, 30 May 2024 21:13:10 +0200
Subject: [PATCH] clang: fix `-Wimplicit-fallthrough` warning
../../../lib/search/normal.c:75:9: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]
default:
^
../../../lib/search/normal.c:75:9: note: insert 'break;' to avoid fall-through
default:
^
break;
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
---
lib/search/normal.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/search/normal.c b/lib/search/normal.c
index 9d86b44ad..c0a54add4 100644
a
|
b
|
mc_search__normal_translate_to_regex (GString * str) |
72 | 72 | case '|': |
73 | 73 | g_string_insert_c (str, loop, '\\'); |
74 | 74 | loop++; |
| 75 | MC_FALLTHROUGH; |
75 | 76 | default: |
76 | 77 | break; |
77 | 78 | } |