Skip to content

Commit d1ed8a1

Browse files
authored
[XPTI] Addresses build warnings reported (intel#4375)
Should address the build warnings reported during self-compile Signed-off-by: Vasanth Tovinkere <[email protected]>
1 parent a04da75 commit d1ed8a1

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

xptifw/include/xpti_int64_hash_table.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ class Hash64x64Table {
161161
public:
162162
using ht_lut_t = std::unordered_map<int64_t, int64_t>;
163163

164-
Hash64x64Table(int size = 1024)
165-
: MForward(size), MReverse(size), MTableSize(size) {
164+
Hash64x64Table(int size = 1024) : MForward(size), MReverse(size) {
166165
#ifdef XPTI_STATISTICS
167166
MInsertions = 0;
168167
MRetrievals = 0;
@@ -267,10 +266,9 @@ class Hash64x64Table {
267266
}
268267

269268
private:
270-
ht_lut_t MForward; ///< Forward lookup hash map
271-
ht_lut_t MReverse; ///< Reverse lookup hash map
272-
int32_t MTableSize; ///< Initial size of the hash map
273-
std::mutex MMutex; ///< Mutex required to implement a double-check pattern
269+
ht_lut_t MForward; ///< Forward lookup hash map
270+
ht_lut_t MReverse; ///< Reverse lookup hash map
271+
std::mutex MMutex; ///< Mutex required to implement a double-check pattern
274272
#ifdef XPTI_STATISTICS
275273
safe_uint64_t MInsertions, ///< Thread-safe tracking of insertions
276274
MRetrievals; ///< Thread-safe tracking of lookups

xptifw/include/xpti_string_table.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class StringTable {
205205

206206
// Clear all the contents of this string table and get it ready for re-use
207207
void clear() {
208-
MIds = {1};
208+
MIds = 1;
209209
MIDToString.clear();
210210
MStringToID.clear();
211211

xptifw/src/xpti_trace_framework.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ class Tracepoints {
269269
// We will always start our ID
270270
// stream from 1. 0 is null_id
271271
// and -1 is invalid_id
272-
MUId = {1};
273-
MInsertions = MRetrievals = {0};
272+
MUId = 1;
273+
MInsertions = MRetrievals = 0;
274274
MPayloads.clear();
275275
MEvents.clear();
276276
}
@@ -776,7 +776,7 @@ class Framework {
776776
}
777777

778778
void clear() {
779-
MUniversalIDs = {1};
779+
MUniversalIDs = 1;
780780
MTracepoints.clear();
781781
MStringTableRef.clear();
782782
}

0 commit comments

Comments
 (0)