use warnings instead of global -w flag

This commit is contained in:
Dietmar Maurer 2013-10-01 13:14:49 +02:00
parent b72e2e9254
commit 990fc5e22e
10 changed files with 18 additions and 7 deletions

View File

@ -1,6 +1,7 @@
package PVE::QMPClient; package PVE::QMPClient;
use strict; use strict;
use warnings;
use PVE::QemuServer; use PVE::QemuServer;
use IO::Multiplex; use IO::Multiplex;
use POSIX qw(EINTR EAGAIN); use POSIX qw(EINTR EAGAIN);

View File

@ -1,6 +1,7 @@
package PVE::QemuServer; package PVE::QemuServer;
use strict; use strict;
use warnings;
use POSIX; use POSIX;
use IO::Handle; use IO::Handle;
use IO::Select; use IO::Select;

View File

@ -2,6 +2,8 @@ qemu-server (3.1-6) unstable; urgency=low
* use new PVE::Storage::abs_filesystem_path() * use new PVE::Storage::abs_filesystem_path()
* use warnings instead of global -w flag
-- Proxmox Support Team <support@proxmox.com> Tue, 01 Oct 2013 12:42:42 +0200 -- Proxmox Support Team <support@proxmox.com> Tue, 01 Oct 2013 12:42:42 +0200
qemu-server (3.1-5) unstable; urgency=low qemu-server (3.1-5) unstable; urgency=low

View File

@ -1,8 +1,9 @@
#!/usr/bin/perl -w #!/usr/bin/perl
package main; package main;
use strict; use strict;
use warnings;
use PVE::Tools; use PVE::Tools;
use PVE::Cluster; use PVE::Cluster;
use PVE::PodParser; use PVE::PodParser;

View File

@ -1,8 +1,9 @@
#!/usr/bin/perl -w #!/usr/bin/perl
# this is some experimental code to test pci pass through # this is some experimental code to test pci pass through
use strict; use strict;
use warnings;
use IO::Dir; use IO::Dir;
use IO::File; use IO::File;
use Time::HiRes qw(usleep); use Time::HiRes qw(usleep);

View File

@ -1,6 +1,7 @@
#!/usr/bin/perl -w #!/usr/bin/perl
use strict; use strict;
use warnings;
use PVE::QemuServer; use PVE::QemuServer;
use PVE::Tools qw(run_command); use PVE::Tools qw(run_command);
use PVE::Network; use PVE::Network;

3
qm
View File

@ -1,6 +1,7 @@
#!/usr/bin/perl -w #!/usr/bin/perl
use strict; use strict;
use warnings;
use Getopt::Long; use Getopt::Long;
use Fcntl ':flock'; use Fcntl ':flock';
use File::Path; use File::Path;

View File

@ -1,6 +1,7 @@
#!/usr/bin/perl -w #!/usr/bin/perl
use strict; use strict;
use warnings;
use Getopt::Long; use Getopt::Long;
use File::Path; use File::Path;
use IO::File; use IO::File;

View File

@ -1,6 +1,7 @@
#!/usr/bin/perl -w #!/usr/bin/perl
use strict; use strict;
use warnings;
use PVE::SafeSyslog; use PVE::SafeSyslog;
use PVE::Tools qw(extract_param); use PVE::Tools qw(extract_param);
use PVE::INotify; use PVE::INotify;

View File

@ -1,6 +1,7 @@
#!/usr/bin/perl -w #!/usr/bin/perl
use strict; use strict;
use warnings;
use IO::File; use IO::File;
use Digest::SHA; use Digest::SHA;