]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Add missing CHECKING_P guard to rust-punycode.cc
authorOwen Avery <powerboat9.gamer@gmail.com>
Sat, 12 Aug 2023 02:39:57 +0000 (22:39 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 18:00:30 +0000 (19:00 +0100)
gcc/rust/ChangeLog:

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

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

index 6c796ab794f6420cc53403fa3b4568b696d9887e..8da724cc65e93c1860aa6b5f4f8568d652f98b31 100644 (file)
@@ -150,6 +150,8 @@ encode_punycode (const Utf8String &input)
 
 } // namespace Rust
 
+#if CHECKING_P
+
 namespace selftest {
 
 void
@@ -176,3 +178,5 @@ rust_punycode_encode_test ()
 }
 
 } // namespace selftest
+
+#endif // CHECKING_P