From 81f44e476fd24ac17fb53cd30e9a23a33f94a0bd Mon Sep 17 00:00:00 2001 From: Daria Mityagina Date: Mon, 24 Jun 2024 15:39:41 +0400 Subject: [PATCH] Fix Windows dynamic build - unknown pragma GCC (#36) --- .../passes/VPUIP2VPUMI40XX/convert_VPUIP_to_VPUMI40XX.cpp | 4 ++++ .../src/dialect/const/utils/constant_folding_cache.cpp | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/vpux_compiler/src/conversion/passes/VPUIP2VPUMI40XX/convert_VPUIP_to_VPUMI40XX.cpp b/src/vpux_compiler/src/conversion/passes/VPUIP2VPUMI40XX/convert_VPUIP_to_VPUMI40XX.cpp index e7f69caa74..b722c83c2d 100644 --- a/src/vpux_compiler/src/conversion/passes/VPUIP2VPUMI40XX/convert_VPUIP_to_VPUMI40XX.cpp +++ b/src/vpux_compiler/src/conversion/passes/VPUIP2VPUMI40XX/convert_VPUIP_to_VPUMI40XX.cpp @@ -746,8 +746,10 @@ class ConvertVPUIP2VPUMI40XXPass final : public ConvertVPUIP2VPUMI40XXBase(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()"); @@ -1037,7 +1039,9 @@ class ConvertVPUIP2VPUMI40XXPass final : public ConvertVPUIP2VPUMI40XXBase