Commit bcd1f15 1 parent ea0198f commit bcd1f15 Copy full SHA for bcd1f15
File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 44
44
PLATFORM_CCFLAGS += $(JEMALLOC_INCLUDE) -DHAVE_JEMALLOC
45
45
endif
46
46
47
- WARNING_FLAGS = -Wall -Werror -Wno-sign-compare -Wno-unused-const-variable
47
+ WARNING_FLAGS = -Wall -Werror -Wno-sign-compare
48
48
CFLAGS += $(WARNING_FLAGS ) -I. -I./include $(PLATFORM_CCFLAGS ) $(OPT )
49
49
CXXFLAGS += $(WARNING_FLAGS ) -I. -I./include $(PLATFORM_CXXFLAGS ) $(OPT ) -Woverloaded-virtual
50
50
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ struct PerfContext {
64
64
uint64_t write_memtable_time;
65
65
};
66
66
67
- #if defined(OS_MACOSX )
67
+ #if defined(IOS_CROSS_COMPILE )
68
68
extern PerfContext perf_context;
69
69
#else
70
70
extern __thread PerfContext perf_context;
Original file line number Diff line number Diff line change @@ -45,7 +45,9 @@ namespace {
45
45
// The longest the prefix of the cache key used to identify blocks can be.
46
46
// We are using the fact that we know for Posix files the unique ID is three
47
47
// varints.
48
- const size_t kMaxCacheKeyPrefixSize = kMaxVarint64Length *3 +1 ;
48
+ // For some reason, compiling for iOS complains that this variable is unused
49
+ const size_t kMaxCacheKeyPrefixSize __attribute__ ((unused)) =
50
+ kMaxVarint64Length * 3 + 1;
49
51
50
52
// Read the block identified by "handle" from "file".
51
53
// The only relevant option is options.verify_checksums for now.
You can’t perform that action at this time.
0 commit comments