• Do
not register here on develop.twiki.org, login with your twiki.org account.
• Use
Item7848 for generic
doc work for TWiki-6.1.1. Use
Item7851 for doc work on
extensions that are not part of a release.
More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
• Does this site look broken?. Use the LitterTray web for test cases.
Item7799: TWiki with current Perl: Eliminate warnings
Item Form Data
AppliesTo: |
Component: |
Priority: |
CurrentState: |
WaitingFor: |
TargetRelease |
ReleasedIn |
Engine |
|
Normal |
Closed |
TWiki:Main.HaraldJoerg |
minor |
6.1.0 |
Detail
This is a collection of warnings which pop up during tests for TWiki under Perl 5.24. It turns out that a couple of warnings were present (but ignored) in earlier versions, too.
-
Possible precedence issue with control flow operator at /linuxdevel/twiki/trunk/core/lib/TWiki/Attach.pm line 226.
- This is somewhat serious: The line in question reads
return $info->{attr} or " ";
. This has always been equivalent to return $info->{attr};
because return has higher precendence than or. The warning came up in Perl 5.20.
- Since this bad line has apparently been working for ages I'll simply drop the
or
clause.
- Done in Rev. 30334. -- TWiki:Main/HaraldJoerg
- 2017-05-26
-
Useless use of greediness modifier '?' ... at trunk/core/lib/TWiki/Store/RcsLite.pm line 302.
- Another new warning in Perl 5.20. I guess it slipped through since
RcsLite
is rarely used in production. I am using RcsLite
quite regularly in my TWikis on Windows and haven't seen any bad effects, and I don't understand what the greediness modifier was supposed to do at all. Therefore I'll simply eliminate it.
- Done in Rev. 30335. -- TWiki:Main/HaraldJoerg
- 2017-05-26
-
Unescaped left brace in regex is deprecated, passed through in regex; ... at CommentPlugin/CommentPluginTests.pm line 224
, 226
- A special case since the left brace comes in through a variable, so replacing
{
with \{
isn't applicable. The method \Q$var\E
works.
-
TWiki::I18N::_normalize_language_tag
should not issue a warning if there's no predefined language
--
TWiki:Main/HaraldJoerg
- 2017-04-10