File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ namespace osmium {
4848
4949 DiffHandler () = default ;
5050
51- void node (const osmium::DiffNode&) const noexcept {
51+ void node (const osmium::DiffNode& /* node */ ) const noexcept {
5252 }
5353
54- void way (const osmium::DiffWay&) const noexcept {
54+ void way (const osmium::DiffWay& /* way */ ) const noexcept {
5555 }
5656
57- void relation (const osmium::DiffRelation&) const noexcept {
57+ void relation (const osmium::DiffRelation& /* relation */ ) const noexcept {
5858 }
5959
6060 }; // class DiffHandler
Original file line number Diff line number Diff line change @@ -91,8 +91,7 @@ namespace osmium {
9191 m_prev (begin),
9292 m_curr (begin),
9393 m_next (begin == end ? begin : ++begin),
94- m_end (std::move(end)),
95- m_diff () {
94+ m_end (std::move(end)) {
9695 }
9796
9897 DiffIterator& operator ++() {
Original file line number Diff line number Diff line change @@ -73,7 +73,6 @@ namespace osmium {
7373 m_entities((entities & ~osmium::osm_entity_bits::area) | (m_with_areas ? osmium::osm_entity_bits::node | osmium::osm_entity_bits::way : osmium::osm_entity_bits::nothing)),
7474 m_location_handler(location_handler),
7575 m_reader(file, m_entities),
76- m_assembler_config(),
7776 m_collector(m_assembler_config)
7877 {
7978 m_location_handler.ignore_errors ();
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ namespace osmium {
8080
8181 template <int SIZE, typename THandlers>
8282 struct call_flush <SIZE, SIZE, THandlers> {
83- void operator ()(THandlers&) {}
83+ void operator ()(THandlers& /* handlers */ ) {}
8484 }; // struct call_flush
8585
8686 OSMIUM_CHAIN_HANDLER_CALL (node, Node)
Original file line number Diff line number Diff line change @@ -106,9 +106,8 @@ namespace osmium {
106106 const element_type& operator *() {
107107 if (m_begin_main == m_end_main) {
108108 return *m_begin_extra;
109- } else {
110- return *m_begin_main;
111109 }
110+ return *m_begin_main;
112111 }
113112
114113 const element_type* operator ->() {
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ namespace osmium {
6060 // and parent plus some overhead for color of red-black-tree
6161 // or similar).
6262 enum {
63- element_size = sizeof (TId) + sizeof (TValue) + sizeof (void *) * 4u
63+ element_size = sizeof (TId) + sizeof (TValue) + sizeof (void *) * 4U
6464 };
6565
6666 public:
Original file line number Diff line number Diff line change @@ -61,21 +61,21 @@ namespace osmium {
6161 class VerboseOutput {
6262
6363 // / all time output will be relative to this start time
64- time_t m_start;
64+ std:: time_t m_start;
6565
6666 // / is verbose mode enabled?
6767 bool m_verbose;
6868
6969 // / a newline was written, start next output with runtime
70- bool m_newline;
70+ bool m_newline = true ;
7171
7272 /* *
7373 * If we remember that a newline was written as the last thing
7474 * write out the time elapsed and reset the newline flag.
7575 */
7676 void start_line () {
7777 if (m_newline) {
78- const time_t elapsed = runtime ();
78+ const std:: time_t elapsed = runtime ();
7979
8080 const char old_fill = std::cerr.fill ();
8181 std::cerr << ' [' << std::setw (2 ) << (elapsed / 60 ) << ' :' << std::setw (2 ) << std::setfill (' 0' ) << (elapsed % 60 ) << " ] " ;
@@ -88,13 +88,12 @@ namespace osmium {
8888 public:
8989
9090 explicit VerboseOutput (bool verbose = false ) noexcept :
91- m_start(time(nullptr )),
92- m_verbose(verbose),
93- m_newline(true ) {
91+ m_start(std::time(nullptr )),
92+ m_verbose(verbose) {
9493 }
9594
96- time_t runtime () const noexcept {
97- return time (nullptr ) - m_start;
95+ std:: time_t runtime () const noexcept {
96+ return std:: time (nullptr ) - m_start;
9897 }
9998
10099 // / Get "verbose" setting.
You can’t perform that action at this time.
0 commit comments