aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/shada.c
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2017-05-03 00:08:10 -0400
committerJames McCoy <jamessan@jamessan.com>2017-05-12 17:07:25 -0400
commit5ec72aadbf51a729969cb7f9f06cf573fc77da59 (patch)
treefd459b0cf4759b3d37fe098aafb8f560674ffb85 /src/nvim/shada.c
parentb43a3dbff8c615fec152e3fb2157961f3d90b705 (diff)
downloadrneovim-5ec72aadbf51a729969cb7f9f06cf573fc77da59.tar.gz
rneovim-5ec72aadbf51a729969cb7f9f06cf573fc77da59.tar.bz2
rneovim-5ec72aadbf51a729969cb7f9f06cf573fc77da59.zip
*: Use __attribute__((fallthrough)) where comments aren't supported
Although GCC now detects possibly unintentional fall through, there rules around which the comments are detected are rather strict. In cases where a comment isn't detected, upstream [recommends] using their fallthrough attribute. [recommends]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817#c11
Diffstat (limited to 'src/nvim/shada.c')
-rw-r--r--src/nvim/shada.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/shada.c b/src/nvim/shada.c
index a6d8cb6563..e1879ca8c0 100644
--- a/src/nvim/shada.c
+++ b/src/nvim/shada.c
@@ -2047,7 +2047,7 @@ static inline ShaDaWriteResult shada_read_when_writing(
}
case kSDReadStatusNotShaDa: {
ret = kSDWriteReadNotShada;
- // fallthrough
+ FALLTHROUGH;
}
case kSDReadStatusReadError: {
return ret;