Skip to content

Commit f012a0e

Browse files
committed
Fix compile warning MacOS
1 parent 7eded60 commit f012a0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Common/Utils/src/ShmManager.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ bool ShmManager::createGlobalSegment(int nsegments)
142142
// TODO: consider using named posix shared memory segments to avoid this
143143
setenv(SHMIDNAME, std::to_string(mShmID).c_str(), 1);
144144
setenv(SHMADDRNAME, std::to_string((unsigned long long)(addr)).c_str(), 1);
145+
return true;
145146
}
146147
LOG(INFO) << "SHARED MEM INITIALIZED AT ID " << mShmID;
147148
if (mShmID == -1) {
@@ -150,6 +151,7 @@ bool ShmManager::createGlobalSegment(int nsegments)
150151
setenv(SHMADDRNAME, std::to_string(0).c_str(), 1);
151152
}
152153
#endif
154+
return false;
153155
}
154156

155157
bool ShmManager::attachToGlobalSegment()
@@ -168,6 +170,7 @@ bool ShmManager::attachToGlobalSegment()
168170

169171
bool b;
170172
tryAttach(b);
173+
return b;
171174
}
172175

173176
void ShmManager::occupySegment()

0 commit comments

Comments
 (0)