aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-19 21:12:30 +0100
committerRichard Brooksby2012-09-19 21:12:30 +0100
commit7c52cf1fc8cfab228c89c4d8461e09601c62acb2 (patch)
tree46e0756bea3dcb6bbb63d7198148366251656d9f /mps/code
parent65c2cd717533144a98da2e06ef57ebd00109a79d (diff)
downloademacs-7c52cf1fc8cfab228c89c4d8461e09601c62acb2.tar.gz
emacs-7c52cf1fc8cfab228c89c4d8461e09601c62acb2.zip
Suppress warning about pageretstruct_zero being unused.
Copied from Perforce Change: 179568 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/poolamc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/mps/code/poolamc.c b/mps/code/poolamc.c
index fc71144ab84..dfac6e54db0 100644
--- a/mps/code/poolamc.c
+++ b/mps/code/poolamc.c
@@ -943,6 +943,16 @@ static Res amcInitComm(Pool pool, RankSet rankSet, va_list arg)
943 Index i; 943 Index i;
944 size_t genArraySize; 944 size_t genArraySize;
945 size_t genCount; 945 size_t genCount;
946
947 /* Suppress a warning about this structure not being used when there
948 are no statistics. Note that simply making the declaration conditional
949 does not work, because we carefully reference expressions inside
950 STATISTICS to prevent such warnings on parameters and local variables.
951 It's just that clang 4.0 on Mac OS X does some sort of extra check
952 that produces a special warnings about static variables. */
953#if !defined(STATISTICS)
954 UNUSED(pageretstruct_Zero);
955#endif
946 956
947 AVER(pool != NULL); 957 AVER(pool != NULL);
948 958