diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2021-04-02 21:14:15 +0200 |
---|---|---|
committer | Philip Herron <herron.philip@googlemail.com> | 2021-04-05 10:45:25 +0100 |
commit | d1cbfc670fe9a54baf08b163beb4b026023c432d (patch) | |
tree | fba1f7dad40a2dbba55ea9791e438da8cbc1c205 /gcc | |
parent | 6b03dff440b37ce4ce98423f57cbabfc039360c9 (diff) | |
download | gcc-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.cc | 4 |
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; |