]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add missing CHECKING_P guard to rust-unicode.cc
authorOwen Avery <powerboat9.gamer@gmail.com>
Sun, 30 Jul 2023 04:23:00 +0000 (00:23 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:56:04 +0000 (18:56 +0100)
gcc/rust/ChangeLog:

* util/rust-unicode.cc: Add CHECKING_P guard.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/util/rust-unicode.cc

index 7f22936eed564e39242df8e5dd2f51049f20b6ed..738e1f162eb944f0be38c998d0047dc10f2ffef0 100644 (file)
@@ -239,6 +239,8 @@ is_numeric (uint32_t codepoint)
 
 } // namespace Rust
 
+#if CHECKING_P
+
 namespace selftest {
 
 void
@@ -326,3 +328,5 @@ rust_utf8_property_test ()
 }
 
 } // namespace selftest
+
+#endif // CHECKING_P