From d1cbfc670fe9a54baf08b163beb4b026023c432d Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Fri, 2 Apr 2021 21:14:15 +0200 Subject: =?UTF-8?q?Address=20'[...]/gcc/rust/rust-diagnostics.cc:198:38:?= =?UTF-8?q?=20error:=20function=20=E2=80=98void=20rust=5Fdebug(Location,?= =?UTF-8?q?=20const=20char*,=20...)=E2=80=99=20might=20be=20a=20candidate?= =?UTF-8?q?=20for=20=E2=80=98gnu=5Fprintf=E2=80=99=20format=20attribute=20?= =?UTF-8?q?[-Werror=3Dsuggest-attribute=3Dformat]'=20diagnostic=20[#336]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gcc/rust/rust-diagnostics.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc') diff --git a/gcc/rust/rust-diagnostics.cc b/gcc/rust/rust-diagnostics.cc index 8bcaef6..1e6d9f2 100644 --- a/gcc/rust/rust-diagnostics.cc +++ b/gcc/rust/rust-diagnostics.cc @@ -190,6 +190,10 @@ rust_inform (const Location location, const char *fmt, ...) void rust_debug (const Location location, const char *fmt, ...) + ATTRIBUTE_PRINTF_2; + +void +rust_debug (const Location location, const char *fmt, ...) { va_list ap; -- cgit v1.1