[upstream_utils] Disable spurious maybe-uninitialized warning from GCC 14 (#6728)

This commit is contained in:
Tyler Veness
2024-06-09 16:53:38 -07:00
committed by GitHub
parent b9935c9885
commit a087544933
2 changed files with 2 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ index 32a427d852355a51dc4263d81498554ff4c3cbba..9f3e3f5b0f15518377c9a8283fd58081
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
#pragma GCC diagnostic ignored "-Wattributes"
#endif
+#if __GNUC__ >= 11 && __GNUC__ <= 13
+#if __GNUC__ >= 11
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+#endif
+#if __GNUC__ >= 12

View File

@@ -81,7 +81,7 @@
// See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
#pragma GCC diagnostic ignored "-Wattributes"
#endif
#if __GNUC__ >= 11 && __GNUC__ <= 13
#if __GNUC__ >= 11
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
#if __GNUC__ >= 12