We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 30e5683 commit c0638c6Copy full SHA for c0638c6
src/displayapp/screens/SystemInfo.cpp
@@ -241,7 +241,12 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen4() {
241
lv_table_set_col_width(infoTask, 3, 90);
242
243
auto nb = uxTaskGetSystemState(tasksStatus, maxTaskCount, nullptr);
244
+// g++ emits a spurious warning (and thus error because we compile with -Werror)
245
+// due to the way std::sort is implemented
246
+#pragma GCC diagnostic push
247
+#pragma GCC diagnostic ignored "-Warray-bounds"
248
std::sort(tasksStatus, tasksStatus + nb, sortById);
249
+#pragma GCC diagnostic pop
250
for (uint8_t i = 0; i < nb && i < maxTaskCount; i++) {
251
char buffer[11] = {0};
252
0 commit comments