From f7dd81b61d794de7e90051b8e97c81f9c0ba00ca Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 28 Feb 2024 19:16:07 -0500 Subject: [PATCH] & is inappropriate for an enum --- firmware/controllers/core/big_buffer.cpp | 2 +- unit_tests/tests/test_big_buffer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/core/big_buffer.cpp b/firmware/controllers/core/big_buffer.cpp index 38e9e9b1be..ca1f19c6b3 100644 --- a/firmware/controllers/core/big_buffer.cpp +++ b/firmware/controllers/core/big_buffer.cpp @@ -9,7 +9,7 @@ static BigBufferUser s_currentUser; static uint32_t s_bigBuffer[BIG_BUFFER_SIZE / sizeof(uint32_t)]; #if EFI_UNIT_TEST -BigBufferUser &getBigBufferCurrentUser() { +BigBufferUser getBigBufferCurrentUser() { return s_currentUser; } #endif // EFI_UNIT_TEST diff --git a/unit_tests/tests/test_big_buffer.cpp b/unit_tests/tests/test_big_buffer.cpp index 726fbc8c6f..e507f55279 100644 --- a/unit_tests/tests/test_big_buffer.cpp +++ b/unit_tests/tests/test_big_buffer.cpp @@ -1,6 +1,6 @@ #include "pch.h" -BigBufferUser &getBigBufferCurrentUser(); +BigBufferUser getBigBufferCurrentUser(); TEST(BigBuffer, CppMagic) { BigBufferHandle h = getBigBuffer(BigBufferUser::ToothLogger);