File: disable_experimental_warnings.patch

package info (click to toggle)
rt-extension-smsnotify 1.04-1.1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 528 kB
  • sloc: perl: 347; makefile: 3
file content (27 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 97d122b8f5886736719cc8ce1de69571c9406149 Mon Sep 17 00:00:00 2001
From: Dominic Hargreaves <dom@earth.li>
Date: Mon, 29 Jun 2015 17:48:06 +0100
Subject: Disable experimental warnings

This more or less temporary change gets rid of the
'when is experimental' warnings should amongst other things get emitted
by the command line tools via cron.

Bug: https://rt.cpan.org/Public/Bug/Display.html?id=105295
Patch-Name: disable_experimental_warnings.patch
---
 lib/RT/Action/SMSNotify.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/RT/Action/SMSNotify.pm b/lib/RT/Action/SMSNotify.pm
index df3ae08..a61c11c 100644
--- a/lib/RT/Action/SMSNotify.pm
+++ b/lib/RT/Action/SMSNotify.pm
@@ -4,6 +4,7 @@ package RT::Action::SMSNotify;
 use 5.10.1;
 use strict;
 use warnings;
+no if $] >= 5.018, warnings => "experimental";
 
 use Data::Dumper;
 use SMS::Send;