gcc/analyzer/ChangeLog:
* analyzer-logging.cc: Guard '#pragma ... ignored "-Wformat-diag"'
by '#if __GNUC__ >= 10'
* analyzer.h: Likewise.
* call-string.cc: Likewise.
#if ENABLE_ANALYZER
+#if __GNUC__ >= 10
#pragma GCC diagnostic ignored "-Wformat-diag"
+#endif
namespace ana {
/* Disable -Wformat-diag; we want to be able to use pp_printf
for logging/dumping without complying with the rules for diagnostics. */
-
+#if __GNUC__ >= 10
#pragma GCC diagnostic ignored "-Wformat-diag"
+#endif
#endif /* GCC_ANALYZER_ANALYZER_H */
#if ENABLE_ANALYZER
+#if __GNUC__ >= 10
#pragma GCC diagnostic ignored "-Wformat-diag"
+#endif
/* class call_string. */