fixed compiler warnings

This commit is contained in:
sascha 2025-07-21 20:08:48 +02:00
parent df480edb05
commit f90a670fb3
2 changed files with 4 additions and 4 deletions

View File

@ -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) { // if (const auto val = column(index); strlen(val) > 0) {
// value = time::parse(val, "%Y-%m-%d %T.%f"); // 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) { // if (const auto val = column(index); strlen(val) > 0) {
// value.set(val, matador::utils::date_format::ISO8601); // 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)); 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<const unsigned char*>(column(index)); const auto *data = reinterpret_cast<const unsigned char*>(column(index));
// auto length = PQgetlength(result_, row_index_, static_cast<int>(index)); // auto length = PQgetlength(result_, row_index_, static_cast<int>(index));

View File

@ -92,7 +92,7 @@ public:
on_foreign_key(id, x); on_foreign_key(id, x);
} }
template<class Pointer> template<class Pointer>
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); // on_foreign_key(id, x);
} }