From 00f79c773bc247830b29b6cef02d89337123c167 Mon Sep 17 00:00:00 2001 From: Pierre-Emmanuel Patry Date: Tue, 20 Jun 2023 15:46:20 +0200 Subject: [PATCH] gccrs: attribute: Add missing header guard Missing header guard may cause infinitie include recursion. gcc/rust/ChangeLog: * util/rust-attributes.h (RUST_ATTRIBUTES_H): Add missing header guard. Signed-off-by: Pierre-Emmanuel Patry --- gcc/rust/util/rust-attributes.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gcc/rust/util/rust-attributes.h b/gcc/rust/util/rust-attributes.h index 1259d1400095..1989d41dd13a 100644 --- a/gcc/rust/util/rust-attributes.h +++ b/gcc/rust/util/rust-attributes.h @@ -15,6 +15,8 @@ // You should have received a copy of the GNU General Public License // along with GCC; see the file COPYING3. If not see // . +#ifndef RUST_ATTRIBUTES_H +#define RUST_ATTRIBUTES_H #include "rust-ast.h" #include "rust-system.h" @@ -267,3 +269,5 @@ private: } // namespace Analysis } // namespace Rust + +#endif /* ! RUST_ATTRIBUTES_H */ -- 2.47.2