Skip to content

Commit 529f774

Browse files
committed
Fix some compiler warnings
1 parent eb613b6 commit 529f774

5 files changed

Lines changed: 5 additions & 4 deletions

File tree

libcds/include/RMQ_succinct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace cds_static
5555
void save(ostream & fp);
5656
RMQ_succinct * load(istream & fp);
5757

58-
~RMQ_succinct();
58+
virtual ~RMQ_succinct();
5959

6060
protected:
6161
/* size of array a*/

libcds/include/TextIndexCSA.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ namespace cds_static
4949
**/
5050
TextIndexCSA(uchar *text, ulong length, char *build_options);
5151

52-
~TextIndexCSA();
52+
virtual ~TextIndexCSA();
5353

5454
/* Writes in numocc the number of occurrences of the substring
5555
* pattern[0..length-1] found in the text indexed by index. */

libcds/src/static/bitsequence/BitSequenceRRR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ namespace cds_static
422422
ret->create_sampling(ret->sample_rate);
423423
return ret;
424424
}
425-
catch(exception e) {
425+
catch(const exception&) {
426426
delete ret;
427427
}
428428
return NULL;

libhdt/src/rdf/RDFParser.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RDFParserCallback *RDFParserCallback::getParserCallback(RDFNotation notation) {
2424
#else
2525
throw ParseException("No Parser available for input RDF Format");
2626
#endif
27+
return nullptr;
2728
}
2829

2930
}

libhdt/tools/hdtSearch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void iterate(HDT *hdt, char *query, ostream &out, bool measure, uint32_t offset)
9898
it->skip(offset);
9999
offset = 0;
100100
}
101-
catch (const runtime_error error) {
101+
catch (const runtime_error&) {
102102
/*invalid offset*/
103103
interruptSignal = 1;
104104
}

0 commit comments

Comments
 (0)