Skip to content

Commit 59d42d1

Browse files
committed
fix warnings
1 parent 4ca8e15 commit 59d42d1

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

db-copy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void db_copy_thread_t::finish_copy()
188188
}
189189

190190
db_copy_mgr_t::db_copy_mgr_t(std::shared_ptr<db_copy_thread_t> const &processor)
191-
: m_processor(processor), m_last_line(0)
191+
: m_processor(processor)
192192
{}
193193

194194
void db_copy_mgr_t::new_line(std::shared_ptr<db_target_descr_t> const &table)

db-copy.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,6 @@ class db_copy_mgr_t
347347

348348
std::shared_ptr<db_copy_thread_t> m_processor;
349349
std::unique_ptr<db_cmd_copy_t> m_current;
350-
unsigned m_last_line;
351350
};
352351

353352
#endif

middle-pgsql.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ void middle_pgsql_t::commit()
770770
}
771771
}
772772

773-
void middle_pgsql_t::flush(osmium::item_type new_type)
773+
void middle_pgsql_t::flush(osmium::item_type)
774774
{
775775
m_db_copy.sync();
776776
}

0 commit comments

Comments
 (0)