Re: [Gc] [bdwgc] 7.4.0: include/gc_cpp.h: Dec laring and assigning breaks non gcc compiles (#39)

Ivan Maidanski <ivmai-JGs/[email protected]>
Newsgroups gmane.comp.programming.garbage-collection.boehmgc
Message-ID <[email protected]>
 Hi,
It would be grood if you prepare a patch fixing the issue.
Thanks
Regards, 
Ivan
--
Friday, 09 May 2014, 14:57 +04:00 from marksolaris <[email protected]>:
The immediate setting of a variable when declaring it in include/gc_cpp.h breaks the Sun Studio compiler as invalid syntax. On Solaris at least all values are already zero'd at declaration anyway so it's not required.
host:/var/tmp/bdw-gc-7.4.0/include root# grep ' = 0' gc_cpp.h
                          GC_NS_QUALIFY(GCCleanUpFunc) cleanup = 0,
                          void* clientData = 0 );
                              GC_NS_QUALIFY(GCCleanUpFunc) cleanup = 0,
                              void* clientData = 0 );
I use this to fix for compiling, note the space before the equals, so the normal assigns still work in the header file.
perl -pe 's# = 0##' -i include/gc_cpp.h
Packages for 7.4.0 on Solaris can be found at:
http://www.ibiblio.org/pub/packages/solaris/sparc/
—

_______________________________________________
bdwgc mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/bdwgc
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.