]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: attribute: Add missing header guard
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 20 Jun 2023 13:46:20 +0000 (15:46 +0200)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:58 +0000 (18:55 +0100)
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 <pierre-emmanuel.patry@embecosm.com>
gcc/rust/util/rust-attributes.h

index 1259d1400095382f8d6680dafabaaf0a20a846cc..1989d41dd13ab761671d9a6e4b501dc7ff770bf6 100644 (file)
@@ -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
 // <http://www.gnu.org/licenses/>.
+#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 */