aboutsummaryrefslogtreecommitdiffstats
path: root/mps/code
diff options
context:
space:
mode:
authorRichard Brooksby2012-09-23 18:04:49 +0100
committerRichard Brooksby2012-09-23 18:04:49 +0100
commit885154e8ed6142fd4696807ea216d2aa37397f9a (patch)
tree26d4cccfbf7f40a75c179b40fcf8f3453731b9c9 /mps/code
parent36751c690dbe205d40d968268f1ee84d89723091 (diff)
parent27a3ea8387fc3fbefa92097d46c95b7fb80137d3 (diff)
downloademacs-885154e8ed6142fd4696807ea216d2aa37397f9a.tar.gz
emacs-885154e8ed6142fd4696807ea216d2aa37397f9a.zip
Merging improvements from version 1.110 branch.
Copied from Perforce Change: 179643 ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
-rw-r--r--mps/code/mps.xcodeproj/project.pbxproj3
-rw-r--r--mps/code/mpstd.h2
-rw-r--r--mps/code/poolamc.c10
3 files changed, 14 insertions, 1 deletions
diff --git a/mps/code/mps.xcodeproj/project.pbxproj b/mps/code/mps.xcodeproj/project.pbxproj
index 075fe7439f2..207e50660e4 100644
--- a/mps/code/mps.xcodeproj/project.pbxproj
+++ b/mps/code/mps.xcodeproj/project.pbxproj
@@ -3143,6 +3143,7 @@
3143 "-Wno-extended-offsetof", 3143 "-Wno-extended-offsetof",
3144 ); 3144 );
3145 SDKROOT = macosx; 3145 SDKROOT = macosx;
3146 SYMROOT = xc;
3146 WARNING_CFLAGS = ( 3147 WARNING_CFLAGS = (
3147 "-pedantic", 3148 "-pedantic",
3148 "-Wpointer-arith", 3149 "-Wpointer-arith",
@@ -3508,6 +3509,7 @@
3508 "-Wno-extended-offsetof", 3509 "-Wno-extended-offsetof",
3509 ); 3510 );
3510 SDKROOT = macosx; 3511 SDKROOT = macosx;
3512 SYMROOT = xc;
3511 WARNING_CFLAGS = ( 3513 WARNING_CFLAGS = (
3512 "-pedantic", 3514 "-pedantic",
3513 "-Wpointer-arith", 3515 "-Wpointer-arith",
@@ -3560,6 +3562,7 @@
3560 "-Wno-extended-offsetof", 3562 "-Wno-extended-offsetof",
3561 ); 3563 );
3562 SDKROOT = macosx; 3564 SDKROOT = macosx;
3565 SYMROOT = xc;
3563 WARNING_CFLAGS = ( 3566 WARNING_CFLAGS = (
3564 "-pedantic", 3567 "-pedantic",
3565 "-Wpointer-arith", 3568 "-Wpointer-arith",
diff --git a/mps/code/mpstd.h b/mps/code/mpstd.h
index 1725639691f..0345810b723 100644
--- a/mps/code/mpstd.h
+++ b/mps/code/mpstd.h
@@ -252,7 +252,7 @@
252 252
253 253
254#else 254#else
255#error "Unable to detect target platform" 255#error "The MPS Kit does not have a configuration for this platform out of the box; see manual/build.txt"
256#endif 256#endif
257 257
258 258
diff --git a/mps/code/poolamc.c b/mps/code/poolamc.c
index 15bbf4aaba4..5901c098512 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