Skip to content

Commit 60f74f3

Browse files
committed
🔨 Suppress truncation warning
1 parent 1a241e6 commit 60f74f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Marlin/src/core/mstring.h

+4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ extern void SERIAL_CHAR(char c);
7373
#pragma GCC diagnostic push
7474
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
7575

76+
#if DISABLED(UNSAFE_MSTRING)
77+
#pragma GCC diagnostic ignored "-Wstringop-truncation"
78+
#endif
79+
7680
/**
7781
* @brief MString class template
7882
* @details A class template providing convenient string operators,

0 commit comments

Comments
 (0)