Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-10-31 20:13:29 +0300
commit9b90cdf445b9893eb93c02317ef87965ec60657f (patch)
tree4d586fe0b033528dcfaa31477dec2e2cef716c88 /src/Storage/FileWriteBuffer.h
parentc0b1908a673e62e8553264f31057843d11a27bc5 (diff)
Annotations for static analysis
Diffstat (limited to 'src/Storage/FileWriteBuffer.h')
-rw-r--r--src/Storage/FileWriteBuffer.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Storage/FileWriteBuffer.h b/src/Storage/FileWriteBuffer.h
index 26f05fa4..5f5deb39 100644
--- a/src/Storage/FileWriteBuffer.h
+++ b/src/Storage/FileWriteBuffer.h
@@ -40,15 +40,15 @@ public:
#if SAME70
FileWriteBuffer(FileWriteBuffer *n, char *storage) noexcept : next(n), index(0), buf(storage) { }
#else
- FileWriteBuffer(FileWriteBuffer *n) noexcept : next(n), index(0) { }
+ explicit FileWriteBuffer(FileWriteBuffer *n) noexcept : next(n), index(0) { }
#endif
static void UsingSbcMode() { fileWriteBufLen = SbcFileWriteBufLen; } // only called by RepRap on startup
FileWriteBuffer *Next() const noexcept { return next; }
void SetNext(FileWriteBuffer *n) noexcept { next = n; }
- char *Data() noexcept { return buf; }
- const char *Data() const noexcept { return buf; }
+ char *_ecv_array Data() noexcept { return buf; }
+ const char *_ecv_array Data() const noexcept { return buf; }
const size_t BytesStored() const noexcept { return index; }
const size_t BytesLeft() const noexcept { return fileWriteBufLen - index; }
@@ -62,7 +62,7 @@ private:
size_t index;
#if SAME70
- char *buf;
+ char *_ecv_array buf;
#else
alignas(4) char buf[FileWriteBufLen]; // 32-bit aligned buffer for better HSMCI performance
#endif