aboutsummaryrefslogtreecommitdiff
path: root/src/Makefile.leveldb.include
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-03-13 21:23:17 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-07-05 08:59:38 +0300
commit014110c47d94ece6e3e655cdbf02ed8c91c7a5cf (patch)
treee8081ec6eb17c133d84b3457561021f5252e0807 /src/Makefile.leveldb.include
parent7a49fdc58115845ece3a9890bf9498bee6b559de (diff)
Use C++17 [[fallthrough]] attribute, and drop -Wno-implicit-fallthrough
Diffstat (limited to 'src/Makefile.leveldb.include')
-rw-r--r--src/Makefile.leveldb.include1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.leveldb.include b/src/Makefile.leveldb.include
index 8a28f4f249..ce1f93f11f 100644
--- a/src/Makefile.leveldb.include
+++ b/src/Makefile.leveldb.include
@@ -22,6 +22,7 @@ LEVELDB_CPPFLAGS_INT += -DHAVE_SNAPPY=0 -DHAVE_CRC32C=1
LEVELDB_CPPFLAGS_INT += -DHAVE_FDATASYNC=@HAVE_FDATASYNC@
LEVELDB_CPPFLAGS_INT += -DHAVE_FULLFSYNC=@HAVE_FULLFSYNC@
LEVELDB_CPPFLAGS_INT += -DHAVE_O_CLOEXEC=@HAVE_O_CLOEXEC@
+LEVELDB_CPPFLAGS_INT += -DFALLTHROUGH_INTENDED=[[fallthrough]]
if WORDS_BIGENDIAN
LEVELDB_CPPFLAGS_INT += -DLEVELDB_IS_BIG_ENDIAN=1