Explorar o código

esp_system: intentionally suppress -Wstringop-overread

Anton Maklakov %!s(int64=3) %!d(string=hai) anos
pai
achega
0c549320b2
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      components/esp_system/port/cpu_start.c

+ 7 - 0
components/esp_system/port/cpu_start.c

@@ -613,7 +613,14 @@ void IRAM_ATTR call_start_cpu0(void)
 #else
     // This assumes that DROM is the first segment in the application binary, i.e. that we can read
     // the binary header through cache by accessing SOC_DROM_LOW address.
+#pragma GCC diagnostic push
+#if     __GNUC__ >= 11
+#pragma GCC diagnostic ignored "-Wstringop-overread"
+#endif
+#pragma GCC diagnostic ignored "-Warray-bounds"
     memcpy(&fhdr, (void *) SOC_DROM_LOW, sizeof(fhdr));
+#pragma GCC diagnostic pop
+
 #endif // CONFIG_APP_BUILD_TYPE_ELF_RAM
 
 #if CONFIG_IDF_TARGET_ESP32