Skip to content

Commit 0a27df1

Browse files
committed
Fix windows compile errors
Signed-off-by: Soren.Soe <2106410+stsoe@users.noreply.github.com>
1 parent 00a7914 commit 0a27df1

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

src/runtime_src/core/common/runner/capture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class frames
151151
// when frame start is captured, it records that this bo
152152
// must be restored from disk during replay
153153
void
154-
sync(artifacts& repo)
154+
sync(artifacts&)
155155
{
156156
// Note that frame runs are invalid wrt this bo'
157157
// When a frame is captured, it must this bo as an argument

src/runtime_src/core/common/runner/detail/streambuf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct streambuf : public std::streambuf
2828
{}
2929

3030
std::streampos
31-
seekpos(std::streampos pos, std::ios_base::openmode which) override
31+
seekpos(std::streampos pos, std::ios_base::openmode) override
3232
{
3333
if (pos < 0 || pos > (egptr() - eback()))
3434
return std::streampos(std::streamoff(-1));
@@ -38,7 +38,7 @@ struct streambuf : public std::streambuf
3838
}
3939

4040
std::streampos
41-
seekoff(std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which) override
41+
seekoff(std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode) override
4242
{
4343
char* new_gptr = nullptr;
4444

src/runtime_src/core/common/runner/replay.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,12 @@ struct replayer
498498
: m_repo(&repo)
499499
, m_executor{create_executor(resources, frame_object.at("runs"))}
500500
, m_init{create_initializer(resources, frame_object.at("runs"))}
501+
#ifdef _WIN32
502+
// help cl.exe deduce the type of the initializer list for m_waits
503+
, m_waits(frame_object.at("waits").get<std::vector<std::string>>())
504+
#else
501505
, m_waits(frame_object.at("waits"))
506+
#endif
502507
{}
503508

504509
const std::vector<std::string>&

0 commit comments

Comments
 (0)