From 81b31801c9f1f9efea30aff483c9eca2ea89ac4b Mon Sep 17 00:00:00 2001 From: rusefillc Date: Thu, 26 Oct 2023 11:09:59 -0400 Subject: [PATCH] simulator does not compile for pchmura4 on gcc13 #5644 --- firmware/console/binary_log/binary_logging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/console/binary_log/binary_logging.cpp b/firmware/console/binary_log/binary_logging.cpp index 9bc8d51406..78e2c06310 100644 --- a/firmware/console/binary_log/binary_logging.cpp +++ b/firmware/console/binary_log/binary_logging.cpp @@ -20,7 +20,7 @@ static scaled_channel packedTime; // The list of logged fields lives in a separate file so it can eventually be tool-generated #include "log_fields_generated.h" -static const uint16_t computeFieldsRecordLength() { +static constexpr uint16_t computeFieldsRecordLength() { uint16_t recLength = 0; for (size_t i = 0; i < efi::size(fields); i++) { recLength += fields[i].getSize(); @@ -47,7 +47,7 @@ void writeSdLogLine(Writer& bufferedWriter) { binaryLogCount++; } -static constexpr uint16_t recordLength = computeFieldsRecordLength(); +static const uint16_t recordLength = computeFieldsRecordLength(); void writeFileHeader(Writer& outBuffer) { char buffer[MLQ_HEADER_SIZE];