Re: warnings since last DBI release

"H.Merijn Brand" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase.devel
Message-ID <[email protected]>
On Fri, 03 Feb 2012 15:42:40 +0000, "Martin J. Evans"
<[email protected]> wrote:

> On 03/02/12 15:16, Tim Bunce wrote:
> > On Fri, Feb 03, 2012 at 11:22:19AM +0100, H.Merijn Brand wrote:
> >>
> >> Warnings (on HP-UX 11.31/5.14.2-64all-ld) *in* last release:
> >>
> >> "DBI.xs", line 1469: warning #4232-D: conversion from "XPVHV *" to a more
> >>            strictly aligned type "XPVMG *" may cause misaligned access
> >> "DBI.xs", line 2582: warning #4232-D: conversion from "XPVHV *" to a more
> >>            strictly aligned type "XPVMG *" may cause misaligned access
> >> "DBI.xs", line 2587: warning #4232-D: conversion from "XPVHV *" to a more
> >>            strictly aligned type "XPVMG *" may cause misaligned access
> >
> > Not sure what to do about those.
> 
> They are not DBI ones, they are the Perl macro HvKEYS - on HPUX.  Might want
> mentioning on p5p - I think Merijn was thinking about doing that.

I did. No reply yet.

> >> "DBI.xs", line 4486: warning #2181-D: argument is incompatible with
> >>            corresponding format string conversion
> >>                    NULL,
> >
> > Does adding a (void*) in front silence that one?
> 
> Merijn discovered it does and it appears something redefines NULL as 0L
> somewhere.

And yes, (void *)NULL removes the warning.

Note that this is a 64bitall build. I had no time to trace the exact
location of the define to 0L, but it might be related.

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.14   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
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.