mk-audit: Useless use of a constant in void context
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maatkit (Ubuntu) |
Opinion
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: maatkit
Description: Ubuntu 10.04.2 LTS
Release: 10.04
# apt-cache policy maatkit
maatkit:
Installed: 5427-1
Candidate: 5427-1
Version table:
*** 5427-1 0
500 http://
100 /var/lib/
mk-audit supports the MKDEBUG env variable:
MKDEBUG=1 mk-audit ...
but if you omit that, it fails:
root@host:~/# mk-audit
Useless use of a constant in void context at /usr/bin/mk-audit line 721.
this is caused by the definition of constant MKDEBUG:
use constant MKDEBUG => $ENV{MKDEBUG};
which may result in 'undef'.
Can be fixed by this definition:
use constant MKDEBUG => $ENV{MKDEBUG}
(at all lines where MKDEBUG is defined).
Regards
Matthias
tags: | added: patch |
mk-audit was retired and removed from Maatkit over a year ago. advisor, mk-schema-advisor (not yet developed) and mk-config-diff.
It was/is being replaced by mk-query-advisor, mk-variable-