[rt.cpan.org #48006] Warnings from Win32::API::Struct

[email protected] ("Cosimo Streppone via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Sun Jul 19 10:43:11 2009: Request 48006 was acted upon.
Transaction: Ticket created by COSIMO
       Queue: Win32-API
     Subject: Warnings from Win32::API::Struct
   Broken in: (no value)
    Severity: Normal
       Owner: COSIMO
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=48006 >


loads of warnings when using the module:

  return $self->{align} unless $self->{align} eq 'auto';
 
Should it be:

  return $self->{align} unless ! defined $self->{align} || $self->
{align} eq 'auto';

But not 100% sure?
 
In addition there are a number of debug lines which also cause loads
of warnings:
 
Struct.pm:221    DEBUG "(PM)Struct::getPack: $self->{__typedef__}
(buffer) = pack($packing, @items)\n";
Struct.pm:229    DEBUG "(PM)Struct::Pack: $self->{__typedef__}(buffer) 
= pack($packing, @$items)\n";
 
Hope this helps.
 
   Regards
   Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.