From: "Martin Liška" <mliska@suse.cz>
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm <dmalcolm@redhat.com>
Subject: [PATCH (pushed)] libgccjit: silent 2 Clang warnings
Date: Wed, 21 Dec 2022 09:05:21 +0100 [thread overview]
Message-ID: <84798cab-dc97-a9c7-0629-82e3d03be246@suse.cz> (raw)
The make silent the following 2 warnings:
jit/jit-playback.h:785:16: warning: private field 'm_source_file' is not used [-Wunused-private-field]
jit/jit-playback.h:804:16: warning: private field 'm_line' is not used [-Wunused-private-field]
gcc/jit/ChangeLog:
* jit-playback.h: Use unused attribute.
---
gcc/jit/jit-playback.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/jit/jit-playback.h b/gcc/jit/jit-playback.h
index 214f399f45c..43e92d67d74 100644
--- a/gcc/jit/jit-playback.h
+++ b/gcc/jit/jit-playback.h
@@ -782,7 +782,7 @@ public:
vec<location *> m_locations;
private:
- source_file *m_source_file;
+ source_file *m_source_file ATTRIBUTE_UNUSED;
int m_line_num;
};
@@ -801,7 +801,7 @@ public:
private:
recording::location *m_recording_loc;
- source_line *m_line;
+ source_line *m_line ATTRIBUTE_UNUSED;
int m_column_num;
};
--
2.39.0
reply other threads:[~2022-12-21 8:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=84798cab-dc97-a9c7-0629-82e3d03be246@suse.cz \
--to=mliska@suse.cz \
--cc=dmalcolm@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).