*: suppress some warnings (see #620)

This commit is contained in:
Michele Caini
2020-12-27 00:12:28 +01:00
parent 4b89fc390d
commit 8c27ca9e36
2 changed files with 2 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ class any {
}
template<typename Type>
static const void * basic_vtable(const operation op, const any &from, const void *to) {
static const void * basic_vtable([[maybe_unused]] const operation op, [[maybe_unused]] const any &from, [[maybe_unused]] const void *to) {
if constexpr(std::is_void_v<Type>) {
return nullptr;
} else if constexpr(std::is_lvalue_reference_v<Type>) {

View File

@@ -155,7 +155,7 @@ class basic_organizer final {
}
template<typename... Type>
static std::size_t fill_dependencies(type_list<Type...>, type_info *buffer, const std::size_t count) {
static std::size_t fill_dependencies(type_list<Type...>, [[maybe_unused]] type_info *buffer, [[maybe_unused]] const std::size_t count) {
if constexpr(sizeof...(Type) == 0u) {
return {};
} else {