aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2021-04-02 21:14:15 +0200
committerPhilip Herron <herron.philip@googlemail.com>2021-04-05 10:45:25 +0100
commitd1cbfc670fe9a54baf08b163beb4b026023c432d (patch)
treefba1f7dad40a2dbba55ea9791e438da8cbc1c205 /gcc
parent6b03dff440b37ce4ce98423f57cbabfc039360c9 (diff)
downloadgcc-d1cbfc670fe9a54baf08b163beb4b026023c432d.zip
gcc-d1cbfc670fe9a54baf08b163beb4b026023c432d.tar.gz
gcc-d1cbfc670fe9a54baf08b163beb4b026023c432d.tar.bz2
Address '[...]/gcc/rust/rust-diagnostics.cc:198:38: error: function ‘void rust_debug(Location, const char*, ...)’ might be a candidate for ‘gnu_printf’ format attribute [-Werror=suggest-attribute=format]' diagnostic [#336]
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/rust-diagnostics.cc4
1 files changed, 4 insertions, 0 deletions
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;