From f90a670fb3abb7298f9c442c8a55c1f4682a690d Mon Sep 17 00:00:00 2001 From: sascha Date: Mon, 21 Jul 2025 20:08:48 +0200 Subject: [PATCH] fixed compiler warnings --- backends/postgres/src/postgres_result_reader.cpp | 6 +++--- include/matador/object/attribute_definition_generator.hpp | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backends/postgres/src/postgres_result_reader.cpp b/backends/postgres/src/postgres_result_reader.cpp index f9f03dd..8b33e73 100644 --- a/backends/postgres/src/postgres_result_reader.cpp +++ b/backends/postgres/src/postgres_result_reader.cpp @@ -106,13 +106,13 @@ void postgres_result_reader::read_value(const char * /*id*/, const size_t index, } } -void postgres_result_reader::read_value(const char * /*id*/, const size_t index, time &/*value*/) { +void postgres_result_reader::read_value(const char * /*id*/, const size_t /*index*/, time &/*value*/) { // if (const auto val = column(index); strlen(val) > 0) { // value = time::parse(val, "%Y-%m-%d %T.%f"); // } } -void postgres_result_reader::read_value(const char * /*id*/, const size_t index, date &/*value*/) { +void postgres_result_reader::read_value(const char * /*id*/, const size_t /*index*/, date &/*value*/) { // if (const auto val = column(index); strlen(val) > 0) { // value.set(val, matador::utils::date_format::ISO8601); // } @@ -144,7 +144,7 @@ void postgres_result_reader::read_value(const char * /*id*/, const size_t index, value.assign(column(index)); } -void postgres_result_reader::read_value( const char* id, const size_t index, utils::blob& value ) +void postgres_result_reader::read_value( const char* /*id*/, const size_t index, utils::blob& value ) { const auto *data = reinterpret_cast(column(index)); // auto length = PQgetlength(result_, row_index_, static_cast(index)); diff --git a/include/matador/object/attribute_definition_generator.hpp b/include/matador/object/attribute_definition_generator.hpp index 937d112..61359b2 100644 --- a/include/matador/object/attribute_definition_generator.hpp +++ b/include/matador/object/attribute_definition_generator.hpp @@ -92,7 +92,7 @@ public: on_foreign_key(id, x); } template - void on_has_one(const char *id, Pointer &x, const utils::foreign_attributes &/*attr*/) { + void on_has_one(const char * /*id*/, Pointer &/*x*/, const utils::foreign_attributes &/*attr*/) { // on_foreign_key(id, x); }