From b016639a9d7685e5678c716644185a20c255b3fb Mon Sep 17 00:00:00 2001 From: rusefillc Date: Mon, 20 Dec 2021 12:25:30 -0500 Subject: [PATCH] Does not compile under gcc10 #3644 --- firmware/main.cpp | 1 - firmware/pch/pch.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/main.cpp b/firmware/main.cpp index cdd472d305..d074bc0f3d 100644 --- a/firmware/main.cpp +++ b/firmware/main.cpp @@ -11,7 +11,6 @@ #include "os_access.h" #include "rusefi.h" #include "mpu_util.h" -#include "version_check.h" int main(void) { /* diff --git a/firmware/pch/pch.h b/firmware/pch/pch.h index 1dd48a2b93..50a13ddb17 100644 --- a/firmware/pch/pch.h +++ b/firmware/pch/pch.h @@ -37,6 +37,10 @@ #include "hardware.h" #include "thread_priority.h" +#if EFI_PROD_CODE +#include "version_check.h" +#endif + #if EFI_UNIT_TEST #include #include