From 8313f8e3f91f00a5fc78d43fb60b09b895600e0a Mon Sep 17 00:00:00 2001 From: BlackMATov Date: Sun, 3 Jul 2022 22:18:20 +0700 Subject: [PATCH] =?UTF-8?q?Happy=20New=20Year=20=F0=9F=A5=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LICENSE.md | 2 +- headers/curly.hpp/curly.hpp | 2 +- sources/curly.hpp/curly.cpp | 6 +++++- untests/curly_tests.cpp | 4 ++-- untests/doctest/doctest.hpp | 9 +++++++++ 5 files changed, 18 insertions(+), 5 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 22e6e0f..33252ab 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ MIT License -Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com) +Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/headers/curly.hpp/curly.hpp b/headers/curly.hpp/curly.hpp index 3a5e4e1..ba96278 100644 --- a/headers/curly.hpp/curly.hpp +++ b/headers/curly.hpp/curly.hpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/curly.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #pragma once diff --git a/sources/curly.hpp/curly.cpp b/sources/curly.hpp/curly.cpp index 9de60a8..e496612 100644 --- a/sources/curly.hpp/curly.cpp +++ b/sources/curly.hpp/curly.cpp @@ -1,7 +1,7 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/curly.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ #include @@ -35,6 +35,7 @@ namespace public: using data_t = std::vector; + [[maybe_unused]] explicit default_uploader(const data_t* src) noexcept : data_(*src) , size_(src->size()) {} @@ -59,6 +60,7 @@ namespace public: using data_t = std::vector; + [[maybe_unused]] explicit default_downloader(data_t* dst) noexcept : data_(*dst) {} @@ -72,6 +74,7 @@ namespace class default_progressor final : public progress_handler { public: + [[maybe_unused]] default_progressor() = default; float update( @@ -251,6 +254,7 @@ namespace } } + [[maybe_unused]] ~curl_state() noexcept { std::lock_guard guard(mutex_); curl_multi_cleanup(curlm_); diff --git a/untests/curly_tests.cpp b/untests/curly_tests.cpp index 242e037..93d07d4 100644 --- a/untests/curly_tests.cpp +++ b/untests/curly_tests.cpp @@ -1,10 +1,10 @@ /******************************************************************************* * This file is part of the "https://github.com/blackmatov/curly.hpp" * For conditions of distribution and use, see copyright notice in LICENSE.md - * Copyright (C) 2019-2021, by Matvey Cherevko (blackmatov@gmail.com) + * Copyright (C) 2019-2022, by Matvey Cherevko (blackmatov@gmail.com) ******************************************************************************/ -#include "doctest/doctest.h" +#include "doctest/doctest.hpp" #include namespace net = curly_hpp; diff --git a/untests/doctest/doctest.hpp b/untests/doctest/doctest.hpp index c1fc7ee..a7467f9 100644 --- a/untests/doctest/doctest.hpp +++ b/untests/doctest/doctest.hpp @@ -1,7 +1,16 @@ #pragma once +#ifdef __clang__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wreserved-identifier" +#endif + #include "doctest.h" +#ifdef __clang__ +#pragma clang diagnostic pop +#endif + #define STATIC_REQUIRE(...)\ static_assert(__VA_ARGS__, #__VA_ARGS__);\ REQUIRE(__VA_ARGS__);