Open MPI logo

Hardware Locality Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Hardware Locality Development mailing list

Subject: Re: [hwloc-devel] compiler warnings in 1.2
From: Samuel Thibault (samuel.thibault_at_[hidden])
Date: 2011-04-27 13:25:05


Jeff Squyres, le Wed 27 Apr 2011 19:19:09 +0200, a écrit :
> On Apr 27, 2011, at 12:21 PM, Samuel Thibault wrote:
>
> >> topology-x86.c: In function ?\200\230summarize?\200\231:
> >> topology-x86.c:273:21: warning: ?\200\230one?\200\231 may be used uninitialized in this function
> >> topology-x86.c: In function ?\200\230look_proc?\200\231:
> >> topology-x86.c:222:61: warning: ?\200\230apic_id?\200\231 may be used uninitialized in this function
> >
> > It's odd that I haven't seen those in my tests. I guess we don't
> > automatically add -O2?
>
> OMPI automatically adds annoying flags like -pedantic to developer builds.

These warnings come from -Wall. But they are often not detected by the
compiler when -O2 is not given.

Samuel