From fdf31ae25f66cd486e655d7ebda36826025b9d0e Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 19 Jan 2022 10:32:13 +0100 Subject: [PATCH] Update on riscv -Wformat-diag string. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_handle_type_attribute): Update one -Wformat-diag string in warning message. --- gcc/config/riscv/riscv.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 8314864..6885b4b 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -3309,8 +3309,8 @@ riscv_handle_type_attribute (tree *node ATTRIBUTE_UNUSED, tree name, tree args, && strcmp (string, "machine")) { warning (OPT_Wattributes, - "argument to %qE attribute is not %, %, " - "or %", name); + "argument to %qE attribute is not %<\"user\"%>, %<\"supervisor\"%>, " + "or %<\"machine\"%>", name); *no_add_attrs = true; } } -- 2.7.4