public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4820] libgccjit: silent 2 Clang warnings
@ 2022-12-21 8:06 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-12-21 8:06 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3e030227eabad2a0107c1d87b5648e6c3584e273
commit r13-4820-g3e030227eabad2a0107c1d87b5648e6c3584e273
Author: Martin Liska <mliska@suse.cz>
Date: Wed Dec 21 08:52:35 2022 +0100
libgccjit: silent 2 Clang warnings
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.
Diff:
---
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;
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-21 8:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-21 8:06 [gcc r13-4820] libgccjit: silent 2 Clang warnings Martin Liska
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).