Skip to content

can't make on mac  #5

@nullne

Description

@nullne
$ make
cd src && tar xf rocksdb-4.13.tar.gz
DEBUG_LEVEL=0 make -C src/rocksdb-4.13 static_lib
  GEN      util/build_version.cc
  GEN      util/build_version.cc
  CC       db/auto_roll_logger.o
In file included from db/auto_roll_logger.cc:6:
In file included from ./db/auto_roll_logger.h:15:
In file included from ./port/util_logger.h:18:
In file included from ./util/posix_logger.h:27:
In file included from ./util/iostats_context_imp.h:8:
In file included from ./util/perf_step_timer.h:9:
In file included from ./util/stop_watch.h:8:
In file included from ./util/statistics.h:17:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
3 warnings generated.
  CC       db/builder.o
In file included from db/builder.cc:16:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/builder.cc:16:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/builder.cc:16:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/builder.cc:16:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/builder.cc:20:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/builder.cc:20:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/builder.cc:20:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/builder.cc:20:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/builder.cc:20:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/builder.cc:20:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/builder.cc:20:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/builder.cc:34:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/builder.cc:34:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
37 warnings generated.
  CC       db/c.o
  CC       db/column_family.o
In file included from db/column_family.cc:10:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/column_family.cc:10:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/column_family.cc:10:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/column_family.cc:10:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/column_family.cc:23:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/column_family.cc:33:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/column_family.cc:33:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
37 warnings generated.
  CC       db/compacted_db_impl.o
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/compacted_db_impl.cc:7:
In file included from ./db/compacted_db_impl.h:8:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
13 warnings generated.
  CC       db/compaction.o
In file included from db/compaction.cc:10:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compaction.cc:10:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/compaction.cc:10:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/compaction.cc:10:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
6 warnings generated.
  CC       db/compaction_iterator.o
In file included from db/compaction_iterator.cc:8:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compaction_iterator.cc:8:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/compaction_iterator.cc:8:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/compaction_iterator.cc:8:
In file included from ./db/compaction_iterator.h:14:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
6 warnings generated.
  CC       db/compaction_job.o
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:20:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:20:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:20:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:20:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/compaction_job.cc:10:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/compaction_job.cc:61:
In file included from ./util/thread_status_util.h:13:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/compaction_job.cc:61:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined
      behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
37 warnings generated.
  CC       db/compaction_picker.o
In file included from db/compaction_picker.cc:10:
In file included from ./db/compaction_picker.h:18:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/compaction_picker.cc:10:
In file included from ./db/compaction_picker.h:18:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/compaction_picker.cc:10:
In file included from ./db/compaction_picker.h:18:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/compaction_picker.cc:10:
In file included from ./db/compaction_picker.h:18:
In file included from ./db/compaction.h:11:
In file included from ./db/version_set.h:31:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior
      [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
6 warnings generated.
  CC       db/convenience.o
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/convenience.cc:14:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
13 warnings generated.
  CC       db/range_del_aggregator.o
  CC       db/db_filesnapshot.o
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/db_filesnapshot.cc:20:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
13 warnings generated.
  CC       db/dbformat.o
In file included from db/dbformat.cc:19:
In file included from ./util/perf_context_imp.h:8:
In file included from ./util/perf_step_timer.h:9:
In file included from ./util/stop_watch.h:8:
In file included from ./util/statistics.h:17:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
3 warnings generated.
  CC       db/db_impl.o
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
In file included from ./util/concurrent_arena.h:18:
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
./util/thread_local.h:205:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_SUPPORT_THREAD_LOCAL
    ^
./util/thread_local.h:22:4: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
   ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:24: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                       ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:22:
In file included from ./db/column_family.h:17:
In file included from ./db/memtable_list.h:16:
In file included from ./db/memtable.h:25:
./util/concurrent_arena.h:97:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./util/thread_local.h:22:47: note: expanded from macro 'ROCKSDB_SUPPORT_THREAD_LOCAL'
  !defined(OS_WIN) && !defined(OS_MACOSX) && !defined(IOS_CROSS_COMPILE)
                                              ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:70:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_BYTES,
    ^
./include/rocksdb/statistics.h:176:3: note: previous declaration is here
  WAL_FILE_BYTES,   // Number of bytes written to WAL
  ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:71:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WAL_FILE_SYNCED,
    ^
./include/rocksdb/statistics.h:175:3: note: previous declaration is here
  WAL_FILE_SYNCED,  // Number of times WAL sync is done
  ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:72:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    BYTES_WRITTEN,
    ^
./include/rocksdb/statistics.h:112:3: note: previous declaration is here
  BYTES_WRITTEN,
  ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:73:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    NUMBER_KEYS_WRITTEN,
    ^
./include/rocksdb/statistics.h:105:3: note: previous declaration is here
  NUMBER_KEYS_WRITTEN,
  ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:74:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_OTHER,
    ^
./include/rocksdb/statistics.h:181:3: note: previous declaration is here
  WRITE_DONE_BY_OTHER,  // Equivalent to writes done for others
  ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:75:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_DONE_BY_SELF,
    ^
./include/rocksdb/statistics.h:180:3: note: previous declaration is here
  WRITE_DONE_BY_SELF,
  ^
In file included from db/db_impl.cc:9:
In file included from ./db/db_impl.h:23:
In file included from ./db/compaction_job.h:24:
./db/internal_stats.h:76:5: warning: declaration shadows a variable in namespace 'rocksdb' [-Wshadow]
    WRITE_WITH_WAL,
    ^
./include/rocksdb/statistics.h:183:3: note: previous declaration is here
  WRITE_WITH_WAL,       // Number of Write calls that request WAL
  ^
In file included from db/db_impl.cc:20:
/usr/local/include/jemalloc/jemalloc.h:215:28: error: exception specification in declaration does not match previous declaration
    void JEMALLOC_NOTHROW       *je_malloc(size_t size)
                                 ^
/usr/local/include/jemalloc/jemalloc.h:66:21: note: expanded from macro 'je_malloc'
#  define je_malloc malloc
                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:40:7: note: previous declaration is here
void    *malloc(size_t __size) __result_use_check __alloc_size(1);
         ^
In file included from db/db_impl.cc:20:
/usr/local/include/jemalloc/jemalloc.h:218:28: error: exception specification in declaration does not match previous declaration
    void JEMALLOC_NOTHROW       *je_calloc(size_t num, size_t size)
                                 ^
/usr/local/include/jemalloc/jemalloc.h:60:21: note: expanded from macro 'je_calloc'
#  define je_calloc calloc
                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:41:7: note: previous declaration is here
void    *calloc(size_t __count, size_t __size) __result_use_check __alloc_size(1,2);
         ^
In file included from db/db_impl.cc:20:
/usr/local/include/jemalloc/jemalloc.h:220:38: error: exception specification in declaration does not match previous declaration
JEMALLOC_EXPORT int JEMALLOC_NOTHROW    je_posix_memalign(void **memptr,
                                        ^
/usr/local/include/jemalloc/jemalloc.h:73:29: note: expanded from macro 'je_posix_memalign'
#  define je_posix_memalign posix_memalign
                            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:52:7: note: previous declaration is here
int      posix_memalign(void **__memptr, size_t __alignment, size_t __size) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_3_0);
         ^
In file included from db/db_impl.cc:20:
/usr/local/include/jemalloc/jemalloc.h:227:28: error: exception specification in declaration does not match previous declaration
    void JEMALLOC_NOTHROW       *je_realloc(void *ptr, size_t size)
                                 ^
/usr/local/include/jemalloc/jemalloc.h:75:22: note: expanded from macro 'je_realloc'
#  define je_realloc realloc
                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:43:7: note: previous declaration is here
void    *realloc(void *__ptr, size_t __size) __result_use_check __alloc_size(2);
         ^
In file included from db/db_impl.cc:20:
/usr/local/include/jemalloc/jemalloc.h:229:39: error: exception specification in declaration does not match previous declaration
JEMALLOC_EXPORT void JEMALLOC_NOTHROW   je_free(void *ptr)
                                        ^
/usr/local/include/jemalloc/jemalloc.h:62:19: note: expanded from macro 'je_free'
#  define je_free free
                  ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/malloc/_malloc.h:42:7: note: previous declaration is here
void     free(void *);
         ^
In file included from db/db_impl.cc:20:
/usr/local/include/jemalloc/jemalloc.h:268:28: error: exception specification in declaration does not match previous declaration
    void JEMALLOC_NOTHROW       *je_valloc(size_t size) JEMALLOC_CXX_THROW
                                 ^
/usr/local/include/jemalloc/jemalloc.h:79:21: note: expanded from macro 'je_valloc'
#  define je_valloc valloc
                    ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/unistd.h:735:7: note: previous declaration is here
void    *valloc(size_t);
         ^
In file included from db/db_impl.cc:100:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/db_impl.cc:100:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/db_impl.cc:100:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/db_impl.cc:100:
In file included from ./util/thread_status_updater.h:42:
./util/thread_operation.h:22:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:50:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:66:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/db_impl.cc:100:
./util/thread_status_updater.h:197:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:87:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
In file included from db/db_impl.cc:101:
./util/thread_status_util.h:128:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
db/db_impl.cc:2410:21: warning: loop variable 'newf' of type 'const std::__1::pair<int, rocksdb::FileMetaData>' creates a copy from type 'const std::__1::pair<int, rocksdb::FileMetaData>'
      [-Wrange-loop-analysis]
    for (const auto newf : c->edit()->GetNewFiles()) {
                    ^
db/db_impl.cc:2410:10: note: use reference type 'const std::__1::pair<int, rocksdb::FileMetaData> &' to prevent copying
    for (const auto newf : c->edit()->GetNewFiles()) {
         ^~~~~~~~~~~~~~~~~
                    &
db/db_impl.cc:6231:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
#if ROCKSDB_USING_THREAD_STATUS
    ^
./include/rocksdb/thread_status.h:25:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(ROCKSDB_LITE) && \
     ^
db/db_impl.cc:6231:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:26:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(NROCKSDB_THREAD_STATUS) && \
     ^
db/db_impl.cc:6231:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:27:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(OS_MACOSX) && \
     ^
db/db_impl.cc:6231:5: warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
./include/rocksdb/thread_status.h:28:6: note: expanded from macro 'ROCKSDB_USING_THREAD_STATUS'
    !defined(IOS_CROSS_COMPILE)
     ^
42 warnings and 6 errors generated.
make[1]: *** [db/db_impl.o] Error 1
make: *** [src/rocksdb-4.13/librocksdb.a] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions