Re: svn commit: r1804618 - /subversion/trunk/build/generator/gen_base.py
From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Thu, 10 Aug 2017 00:56:45 +0000
philip_at_apache.org wrote on Thu, 10 Aug 2017 00:09 +0000:
Passing an empty list to write_struct() will define svn__errno as:
static struct {…} svn__errno[] = {};
svn__errno is iterated on with:
for (i = 0; i < sizeof(svn__errno)/sizeof(svn__errno[0]); i++)
Is this loop iteration style valid for empty arrays? Looking at C89, it's not
IIRC, this question affects Windows debug builds since they define SVN_DEBUG.
Cheers,
Daniel
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.