Issue: Non-constant struct initializers break build on Solaris/SunPRO
From: Daniel Richard G. <skunk_at_iSKUNK.ORG>
Date: Tue, 19 Jun 2012 17:15:16 -0400
Building Subversion 1.7.5 on Solaris 8 with the vendor (SunPRO) compiler
"subversion/libsvn_subr/sqlite.c", line 1208: non-constant initializer: op "NAME"
To generalize, this code is frowned upon:
struct foobar {
Compiling the above yields
$ cc -c foo.c
Rewriting the struct declaration/assignment as
struct foobar fb;
allows the build to proceed.
The attached patch does this for the current SVN source and allows
--Daniel
-- Daniel Richard G. || skunk_at_iSKUNK.ORG My ASCII-art .sig got a bad case of Times New Roman.
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.