From 7c410d63017604c5889ceb1ee00f7993b3b7c130 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 1 Oct 2013 13:03:43 +0200 Subject: [PATCH] use warnings instead of global -w flag --- Makefile | 2 +- PVE/AccessControl.pm | 1 + PVE/Auth/LDAP.pm | 2 ++ PVE/Auth/PAM.pm | 2 ++ PVE/Auth/PVE.pm | 2 ++ changelog.Debian | 2 ++ pveum | 3 ++- 7 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8493f87..63d406e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -RELEASE=3.0 +RELEASE=3.1 VERSION=3.0 PACKAGE=libpve-access-control diff --git a/PVE/AccessControl.pm b/PVE/AccessControl.pm index f0c37c7..bb109e3 100644 --- a/PVE/AccessControl.pm +++ b/PVE/AccessControl.pm @@ -1,6 +1,7 @@ package PVE::AccessControl; use strict; +use warnings; use Encode; use Crypt::OpenSSL::Random; use Crypt::OpenSSL::RSA; diff --git a/PVE/Auth/LDAP.pm b/PVE/Auth/LDAP.pm index dc1c229..a423ee7 100755 --- a/PVE/Auth/LDAP.pm +++ b/PVE/Auth/LDAP.pm @@ -1,6 +1,8 @@ package PVE::Auth::LDAP; use strict; +use warnings; + use PVE::Auth::Plugin; use Net::LDAP; use base qw(PVE::Auth::Plugin); diff --git a/PVE/Auth/PAM.pm b/PVE/Auth/PAM.pm index 9376805..04f0d93 100755 --- a/PVE/Auth/PAM.pm +++ b/PVE/Auth/PAM.pm @@ -1,6 +1,8 @@ package PVE::Auth::PAM; use strict; +use warnings; + use PVE::Tools qw(run_command); use PVE::Auth::Plugin; use Authen::PAM qw(:constants); diff --git a/PVE/Auth/PVE.pm b/PVE/Auth/PVE.pm index 7f771fa..5f60cf3 100755 --- a/PVE/Auth/PVE.pm +++ b/PVE/Auth/PVE.pm @@ -1,6 +1,8 @@ package PVE::Auth::PVE; use strict; +use warnings; + use PVE::Auth::Plugin; use PVE::Cluster qw(cfs_register_file cfs_read_file cfs_write_file cfs_lock_file); diff --git a/changelog.Debian b/changelog.Debian index ce8ea4d..867e22b 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -2,6 +2,8 @@ libpve-access-control (3.0-7) unstable; urgency=low * check_volume_access : use parse_volname instead of path, and remove path related code. + + * use warnings instead of global -w flag. -- Proxmox Support Team Tue, 01 Oct 2013 12:35:53 +0200 diff --git a/pveum b/pveum index 7c69688..55ad1f4 100755 --- a/pveum +++ b/pveum @@ -1,6 +1,7 @@ -#!/usr/bin/perl -w +#!/usr/bin/perl use strict; +use warnings; use Getopt::Long; use PVE::Tools qw(run_command); use PVE::Cluster; -- 2.39.2