This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Deprecate :unique even with threads
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index 545116f..4bf4a85 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -4027,8 +4027,8 @@ Perl_yylex(pTHX)
                            GvUNIQUE_on(cGVOPx_gv(yylval.opval));
 #else
                            /* skip to avoid loading attributes.pm */
-                           deprecate(":unique");
 #endif
+                           deprecate(":unique");
                        }
                        else
                            Perl_croak(aTHX_ "The 'unique' attribute may only be applied to 'our' variables");