[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] compile fs-test.c with non-gcc compiler

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-09-13 00:59:35 CEST

"D. J. Hagberg" <dh114027@central.sun.com> writes:

> Index: subversion/tests/libsvn_fs/fs-test.c
> ===================================================================
> --- subversion/tests/libsvn_fs/fs-test.c
> +++ subversion/tests/libsvn_fs/fs-test.c Mon Sep 9 13:38:01 2002
> @@ -5167,18 +5167,18 @@
> {
> for (j = 0; j < 16; j++)
> {
> - struct path_rev_t pr1 = path_revs[i];
> - struct path_rev_t pr2 = path_revs[j];
> + struct path_rev_t *pr1 = &(path_revs[i]);
> + struct path_rev_t *pr2 = &(path_revs[j]);

Out of interest, does using const

> + const struct path_rev_t pr1 = path_revs[i];
> + const struct path_rev_t pr2 = path_revs[j];

work?

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Sep 13 01:00:12 2002

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.