5 Commits

Author SHA1 Message Date
7705432820 refactor
All checks were successful
BlockStorage/repertory_osx_builds/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good
2023-12-20 13:13:52 -06:00
f150832676 default to release 2023-12-20 12:12:22 -06:00
80c9375d65 fix 2023-12-20 12:05:59 -06:00
48ddff9e85 default to release 2023-12-20 11:59:41 -06:00
6f64fe02d5 address compiler warning 2023-12-18 09:15:28 -06:00
8 changed files with 16 additions and 6 deletions

View File

@ -242,6 +242,7 @@ usermount
userprofile
utimens
utimensat
waggressive
wcast
wconversion
wdouble

View File

@ -24,8 +24,9 @@
#if defined(__GNUC__)
// clang-format off
#define REPERTORY_IGNORE_WARNINGS_ENABLE() \
#define REPERTORY_IGNORE_WARNINGS_ENABLE() \
_Pragma("GCC diagnostic push") \
_Pragma("GCC diagnostic ignored \"-Waggressive-loop-optimizations\"") \
_Pragma("GCC diagnostic ignored \"-Wconversion\"") \
_Pragma("GCC diagnostic ignored \"-Wdouble-promotion\"") \
_Pragma("GCC diagnostic ignored \"-Wduplicated-branches\"") \
@ -121,6 +122,7 @@ template <typename data_type>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
#include <boost/asio.hpp>
#include <boost/asio/io_context.hpp>
#include <boost/bind/bind.hpp>
#include <boost/dynamic_bitset.hpp>
#include <boost/dynamic_bitset/serialization.hpp>

View File

@ -5,6 +5,10 @@ BUILD_CLEAN=$2
IS_MINGW=$3
IS_WIN32=$4
if [ "${BUILD_TYPE}" == "" ]; then
BUILD_TYPE=Release
fi
if [ "${IS_MINGW}" == "1" ] || [ "${IS_WIN32}" == "1" ]; then
BUILD_ROOT=build2
else

View File

@ -1,5 +1,5 @@
#!/bin/bash
pushd "$(dirname "$0")/.."
scripts/make_common.sh ${1} "${2}" 1
scripts/make_common.sh "${1}" "${2}" 1
popd

View File

@ -11,6 +11,9 @@ NAME=alpine
if [ -z "${BUILD_ARCH}" ]; then
BUILD_ARCH=64_bit
fi
if [ -z "${BUILD_TYPE}" ]; then
BUILD_TYPE=Release
fi
ln -sf ${SOURCE_DIR}/build/compile_commands.json ${SOURCE_DIR}/compile_commands.json

View File

@ -1,5 +1,5 @@
@echo off
pushd "%~dp0%.."
mingw64 scripts/make_common.sh %1 "%2" 0 1
mingw64 scripts/make_common.sh "%1" "%2" 0 1
popd

View File

@ -7,5 +7,4 @@ pacman -Sqyuu --noconfirm &&
mingw64/mingw-w64-x86_64-make \
mingw64/mingw-w64-x86_64-toolchain \
msys/git \
msys/mercurial \
make

View File

@ -53,8 +53,9 @@ auto eviction::check_minimum_requirements(const std::string &file_path)
const auto now = std::chrono::system_clock::now();
const auto delay =
std::chrono::minutes(config_.get_eviction_delay_mins());
ret = ((std::chrono::system_clock::from_time_t(reference_time) + delay) <=
now);
ret = ((std::chrono::system_clock::from_time_t(
static_cast<time_t>(reference_time)) +
delay) <= now);
#else
const auto now = utils::get_time_now();
const auto delay =