Skip to Content.
Sympa Menu

h5part - Re: [H5part] SVN access available for contributions?

h5part AT lists.psi.ch

Subject: H5Part development and discussion

List archive

Re: [H5part] SVN access available for contributions?


Chronological Thread 
  • From: Achim Gsell <Achim.Gsell AT psi.ch>
  • To: h5part AT lists.psi.ch
  • Subject: Re: [H5part] SVN access available for contributions?
  • Date: Mon, 12 Mar 2007 16:12:11 +0100
  • List-archive: <https://lists.web.psi.ch/pipermail/h5part/>
  • List-id: H5Part development and discussion <h5part.lists.psi.ch>
  • Organization: Paul Scherrer Institut

On Monday 12 March 2007 15:07, John Biddiscombe wrote:
>
> > I have no idea about MicroSoft C-compilers! Anyone else?
> >
> OK. I just looked again at the errors and now I realize what has
> happened. The H5Part.c and H5Block.c files are declaring variables
> within the body of the function (i.e. not at the start of the function
> scope). According to c99 or some other spec, the variables should be
> defined before use. I can't find a flag in MSVC to turn off this checking.
> When compiling as C++, the restriction is lifted and there's no problem.

C99 allows variable declaration anywhere inside a function, not just at the
top. AFAIK there is no variable declaration *after* the first use in H5Part,
otherwise this must be fixed.

Achim




Archive powered by MHonArc 2.6.19.

Top of Page