Skip to content

Commit

Permalink
Fix Windows dynamic build - unknown pragma GCC (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
DariaMityagina authored Jun 24, 2024
1 parent 260a105 commit 81f44e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -746,8 +746,10 @@ class ConvertVPUIP2VPUMI40XXPass final : public ConvertVPUIP2VPUMI40XXBase<Conve
return std::pair<mlir::Value, mlir::Value>(kernelRangeOp.getResult(), kernelInvocationOp.getResult());
}

#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
void replaceVPURTTaskOpWithKernelOps(mlir::MLIRContext* ctx, mlir::ModuleOp& moduleOp, mlir::func::FuncOp& funcOp,
Logger& _log) {
_log.info("VPUIP_VPUMI40XX pass: replaceVPURTTaskOpWithKernelOps()");
Expand Down Expand Up @@ -1037,7 +1039,9 @@ class ConvertVPUIP2VPUMI40XXPass final : public ConvertVPUIP2VPUMI40XXBase<Conve
}
}
}
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif

void setBarrierIndexValues(mlir::MLIRContext* ctx, mlir::func::FuncOp& funcOp, Logger _log) {
auto barrierCount = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@ void Const::ConstantFoldingCache::enqueueRequest(const Const::FoldingRequest& fo

Const::FoldingRequest Const::ConstantFoldingCache::getRequest() {
Const::FoldingRequest result;
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overflow"
_requestQueue.pop(result);
#endif
_requestQueue.pop(result);
#if defined(__GNUC__)
#pragma GCC diagnostic pop
#endif
return result;
}

Expand Down

0 comments on commit 81f44e4

Please sign in to comment.