From 95401036abc3a4256d5b0a1c8b493c52d754b676 Mon Sep 17 00:00:00 2001 From: Feiyue Chen Date: Wed, 14 Sep 2022 17:36:05 +0800 Subject: [PATCH] fixed some errs on gcc12 --- CMakeLists.txt | 2 +- include/tim/vx/ops/maxpoolgrad.h | 1 + src/tim/vx/ops/stridedslice_test.cc | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 70b843d..3911488 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,7 +64,7 @@ if(TIM_VX_ENABLE_TEST) FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG release-1.10.0 + GIT_TAG release-1.12.0 ) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) diff --git a/include/tim/vx/ops/maxpoolgrad.h b/include/tim/vx/ops/maxpoolgrad.h index 361a38a..3d941b9 100644 --- a/include/tim/vx/ops/maxpoolgrad.h +++ b/include/tim/vx/ops/maxpoolgrad.h @@ -27,6 +27,7 @@ #define TIM_VX_OPS_MAXPOOLGRAD_H_ #include "tim/vx/operation.h" +#include namespace tim { namespace vx { namespace ops { diff --git a/src/tim/vx/ops/stridedslice_test.cc b/src/tim/vx/ops/stridedslice_test.cc index 933c02e..c23a743 100644 --- a/src/tim/vx/ops/stridedslice_test.cc +++ b/src/tim/vx/ops/stridedslice_test.cc @@ -26,6 +26,7 @@ #include "tim/vx/ops/stridedslice.h" #include "tim/transform/layout_inference.h" +#include #include #include "gtest/gtest.h"