Skip to content

Commit f6255fb

Browse files
committed
Suppress const warnings.
1 parent cdc6f75 commit f6255fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

etsan/defs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
using namespace std;
2828

29-
typedef void * Address;
29+
typedef const void * Address;
3030
typedef unsigned int ThreadID;
3131
typedef vector<int> VectorClock;
3232

etsan/race.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Race {
6060
/**
6161
* Prints the call stack of a thread when a race is found
6262
*/
63-
string printStack() {
63+
string printStack() const {
6464

6565
stringstream ss;
6666

@@ -77,7 +77,7 @@ class Race {
7777
/**
7878
* Constructs a nicely reading message about the race
7979
* and stores the result in "msg" string. */
80-
void createRaceMessage(string& msg) {
80+
void createRaceMessage(string& msg) const {
8181
stringstream ss;
8282

8383
ss << "=============================================\n" ;

0 commit comments

Comments
 (0)