]>
git.proxmox.com Git - ceph.git/blob - ceph/src/rocksdb/util/util.h
1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
2 // This source code is licensed under both the GPLv2 (found in the
3 // COPYING file in the root directory) and Apache 2.0 License
4 // (found in the LICENSE.Apache file in the root directory).
8 #ifndef FALLTHROUGH_INTENDED
10 #define FALLTHROUGH_INTENDED [[clang::fallthrough]]
11 #elif defined(__GNUC__) && __GNUC__ >= 7
12 #define FALLTHROUGH_INTENDED [[gnu::fallthrough]]
14 #define FALLTHROUGH_INTENDED do {} while (0)