From 3e030227eabad2a0107c1d87b5648e6c3584e273 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 21 Dec 2022 08:52:35 +0100 Subject: [PATCH] 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. --- 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 214f399..43e92d6 100644 --- a/gcc/jit/jit-playback.h +++ b/gcc/jit/jit-playback.h @@ -782,7 +782,7 @@ public: vec 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.7.4