Skip to content

Commit

Permalink
Merge pull request #1067 from jmarshall/gcc-13
Browse files Browse the repository at this point in the history
Fix various GCC 13 warnings and errors
  • Loading branch information
arq5x authored Oct 30, 2023
2 parents 07533e9 + b1dae36 commit 1bae92c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/utils/FileRecordTools/Records/Record.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Record {
virtual void printNull(string &) const {}
friend ostream &operator << (ostream &out, const Record &record);

virtual const Record & operator=(const Record &);
const Record & operator=(const Record &);

virtual bool isZeroBased() const {return true;};

Expand Down
4 changes: 2 additions & 2 deletions src/utils/NewChromsweep/NewChromsweep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ NewChromSweep::NewChromSweep(ContextIntersect *context)
_wasInitialized(false),
_currQueryRec(NULL),
_runToQueryEnd(_context->getRunToQueryEnd()),
_runToDbEnd(false),
_lexicoDisproven(false),
_lexicoAssumed(false),
_lexicoAssumedFileIdx(-1),
_testLastQueryRec(false),
_runToDbEnd(false)
_testLastQueryRec(false)
{
_filePrevChrom.resize(_numFiles);
_runToDbEnd = context->shouldRunToDbEnd();
Expand Down
3 changes: 1 addition & 2 deletions src/utils/NewChromsweep/NewChromsweep.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ class NewChromSweep {
string _currQueryChromName;
string _prevQueryChromName;
bool _runToQueryEnd;
bool _runToDbEnd;

bool _runToDbEnd;

virtual void masterScan(RecordKeyVector &retList);

Expand Down
1 change: 1 addition & 0 deletions src/utils/general/ParseTools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <climits>
#include <cctype>
#include <cstring>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <sstream>
Expand Down
5 changes: 2 additions & 3 deletions src/utils/general/ParseTools.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
#include "string.h"
#include <cstdio>
#include <cstdlib>
#include "BedtoolsTypes.h"

using namespace std;

typedef int64_t CHRPOS;

bool isNumeric(const string &str);
bool isInteger(const string &str);

Expand Down Expand Up @@ -54,7 +53,7 @@ void int2str(U number, T& buffer, bool appendToBuf = false)

bool neg = number < 0;
if(neg) number = -number;
uint32_t n;
unsigned int n;
for(n = 0; number; number /= 10)
tmp[12 - ++n] = number % 10 + '0';
if(neg) tmp[12 - ++n] = '-';
Expand Down

0 comments on commit 1bae92c

Please sign in to comment.