Skip to content

Commit

Permalink
Merge pull request #5 from Conzxy/dist
Browse files Browse the repository at this point in the history
Dist
  • Loading branch information
Conzxy authored Apr 5, 2023
2 parents 082d8fe + 7774c0a commit c4eca26
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion cmake/compile_flag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ else ()
-Wno-format-security
# support INT2DOUBLE
-Wno-strict-aliasing
-Werror
#-Werror
# make non-trivial(but like "trivial") class can reallocate
-Wno-class-memaccess
-Wno-implicit-fallthrough
Expand Down
1 change: 1 addition & 0 deletions mmkv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ target_include_directories(mmkv-server
PRIVATE ${CHISATO_DIR}
PRIVATE ${PROJECT_SOURCE_DIR}
PRIVATE ${XXHASH_DIR}
PRIVATE ${HKLUA_DIR}
)

mmkv_gen_app(rlogdump SOURCES ${RLOG_DUMP_SRC} LIBS ${MMKV_COMMON_LIBS})
Expand Down
2 changes: 1 addition & 1 deletion mmkv/util/conc_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ int mmkv::util::GetCoreNum()
static int ret = 1;
#endif
#ifdef _SC_NPROCESSORS_ONLN
static ret = sysconf(_SC_NPROCESSORS_ONLN);
static int ret = sysconf(_SC_NPROCESSORS_ONLN);
#endif

return ret;
Expand Down
5 changes: 4 additions & 1 deletion mmkv/util/time_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ inline double GetTimeFloatSec() noexcept
* negative -- failure
* otherwise, success
*/
inline int64_t GetTimeSec() noexcept { return ::time(NULL); }
inline int64_t GetTimeSec() noexcept
{
return ::time(NULL);
}

} // namespace util

Expand Down
2 changes: 1 addition & 1 deletion third-party/hklua
2 changes: 1 addition & 1 deletion third-party/kanon
2 changes: 1 addition & 1 deletion third-party/replxx
Submodule replxx updated 1 files
+391 −424 src/history.cxx
2 changes: 1 addition & 1 deletion third-party/takina
Submodule takina updated 1 files
+34 −46 takina.cc

0 comments on commit c4eca26

Please sign in to comment.