diff options
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/catch2/catch.hpp (renamed from toolsrc/include/vcpkg-test/catch.h) | 0 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg-test/util.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/chrono.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/graphs.h | 2 | ||||
| -rw-r--r-- | toolsrc/include/vcpkg/base/util.h | 5 |
5 files changed, 5 insertions, 6 deletions
diff --git a/toolsrc/include/vcpkg-test/catch.h b/toolsrc/include/catch2/catch.hpp index 303f664ff..303f664ff 100644 --- a/toolsrc/include/vcpkg-test/catch.h +++ b/toolsrc/include/catch2/catch.hpp diff --git a/toolsrc/include/vcpkg-test/util.h b/toolsrc/include/vcpkg-test/util.h index 8a458a3e5..259b0ba7e 100644 --- a/toolsrc/include/vcpkg-test/util.h +++ b/toolsrc/include/vcpkg-test/util.h @@ -1,4 +1,4 @@ -#include <vcpkg-test/catch.h> +#include <catch2/catch.hpp> #include <vcpkg/pragmas.h> #include <vcpkg/base/files.h> diff --git a/toolsrc/include/vcpkg/base/chrono.h b/toolsrc/include/vcpkg/base/chrono.h index 89cd15273..118e9c382 100644 --- a/toolsrc/include/vcpkg/base/chrono.h +++ b/toolsrc/include/vcpkg/base/chrono.h @@ -56,7 +56,7 @@ namespace vcpkg::Chrono static Optional<CTime> get_current_date_time(); static Optional<CTime> parse(CStringView str); - constexpr CTime() noexcept : m_tm{0} {} + constexpr CTime() noexcept : m_tm{} {} explicit constexpr CTime(tm t) noexcept : m_tm{t} {} CTime add_hours(const int hours) const; diff --git a/toolsrc/include/vcpkg/base/graphs.h b/toolsrc/include/vcpkg/base/graphs.h index 9901a49a0..683735b1c 100644 --- a/toolsrc/include/vcpkg/base/graphs.h +++ b/toolsrc/include/vcpkg/base/graphs.h @@ -46,7 +46,7 @@ namespace vcpkg::Graphs if (!r) return; for (auto i = c.size(); i > 1; --i) { - auto j = r->random(static_cast<int>(i)); + std::size_t j = r->random(static_cast<int>(i)); if (j != i - 1) { std::swap(c[i - 1], c[j]); diff --git a/toolsrc/include/vcpkg/base/util.h b/toolsrc/include/vcpkg/base/util.h index 90c947aa9..40022a012 100644 --- a/toolsrc/include/vcpkg/base/util.h +++ b/toolsrc/include/vcpkg/base/util.h @@ -221,9 +221,8 @@ namespace vcpkg::Util } } - template<class T> - void unused(T&& param) + template<class... Ts> + void unused(const Ts&...) { - (void)param; } } |
