diff options
| author | Richard Brooksby | 2012-09-03 13:38:53 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-03 13:38:53 +0100 |
| commit | 5333e6d525fe9065cf403e65517576ca7cd9397e (patch) | |
| tree | 7341ef354006b5ca0450d467d0afdd2bd6d4122f /mps/code | |
| parent | 3ec3f57262fa3cb2ceed3b1be8dae787a8424075 (diff) | |
| download | emacs-5333e6d525fe9065cf403e65517576ca7cd9397e.tar.gz emacs-5333e6d525fe9065cf403e65517576ca7cd9397e.zip | |
Checking and suppressing warnings caused by higher level of optimisation and building from mps.c on ubuntu 12.
Copied from Perforce
Change: 179194
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/arenacl.c | 2 | ||||
| -rw-r--r-- | mps/code/arenavm.c | 2 | ||||
| -rw-r--r-- | mps/code/cbs.c | 2 | ||||
| -rw-r--r-- | mps/code/poolmrg.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/mps/code/arenacl.c b/mps/code/arenacl.c index 5d59abb9827..2238dddb4f6 100644 --- a/mps/code/arenacl.c +++ b/mps/code/arenacl.c | |||
| @@ -406,7 +406,7 @@ static Res ClientAlloc(Addr *baseReturn, Tract *baseTractReturn, | |||
| 406 | static void ClientFree(Addr base, Size size, Pool pool) | 406 | static void ClientFree(Addr base, Size size, Pool pool) |
| 407 | { | 407 | { |
| 408 | Arena arena; | 408 | Arena arena; |
| 409 | Chunk chunk; | 409 | Chunk chunk = NULL; /* suppress "may be used uninitialized" */ |
| 410 | Size pages; | 410 | Size pages; |
| 411 | ClientArena clientArena; | 411 | ClientArena clientArena; |
| 412 | Index pi, baseIndex, limitIndex; | 412 | Index pi, baseIndex, limitIndex; |
diff --git a/mps/code/arenavm.c b/mps/code/arenavm.c index 87d7a797d37..0f6f3ab47b2 100644 --- a/mps/code/arenavm.c +++ b/mps/code/arenavm.c | |||
| @@ -1584,7 +1584,7 @@ static void VMFree(Addr base, Size size, Pool pool) | |||
| 1584 | Arena arena; | 1584 | Arena arena; |
| 1585 | VMArena vmArena; | 1585 | VMArena vmArena; |
| 1586 | VMChunk vmChunk; | 1586 | VMChunk vmChunk; |
| 1587 | Chunk chunk; | 1587 | Chunk chunk = NULL; /* suppress "may be used uninitialized" */ |
| 1588 | Count pages; | 1588 | Count pages; |
| 1589 | Index pi, piBase, piLimit; | 1589 | Index pi, piBase, piLimit; |
| 1590 | Index pageTableBase; | 1590 | Index pageTableBase; |
diff --git a/mps/code/cbs.c b/mps/code/cbs.c index df1a359e59a..c2cda567b7f 100644 --- a/mps/code/cbs.c +++ b/mps/code/cbs.c | |||
| @@ -1561,7 +1561,7 @@ Bool CBSFindLargest(Addr *baseReturn, Addr *limitReturn, | |||
| 1561 | notEmpty = SplayRoot(&root, splayTreeOfCBS(cbs)); | 1561 | notEmpty = SplayRoot(&root, splayTreeOfCBS(cbs)); |
| 1562 | if (notEmpty) { | 1562 | if (notEmpty) { |
| 1563 | CBSBlock block; | 1563 | CBSBlock block; |
| 1564 | SplayNode node; | 1564 | SplayNode node = NULL; /* suppress "may be used uninitialized" */ |
| 1565 | 1565 | ||
| 1566 | size = cbsBlockOfSplayNode(root)->maxSize; | 1566 | size = cbsBlockOfSplayNode(root)->maxSize; |
| 1567 | METER_ACC(cbs->splaySearch, cbs->splayTreeSize); | 1567 | METER_ACC(cbs->splaySearch, cbs->splayTreeSize); |
diff --git a/mps/code/poolmrg.c b/mps/code/poolmrg.c index d55f8af9f3b..397ba89b6db 100644 --- a/mps/code/poolmrg.c +++ b/mps/code/poolmrg.c | |||
| @@ -407,7 +407,7 @@ static void MRGGuardianInit(MRG mrg, Link link, RefPart refPart) | |||
| 407 | 407 | ||
| 408 | static void MRGMessageDelete(Message message) | 408 | static void MRGMessageDelete(Message message) |
| 409 | { | 409 | { |
| 410 | Pool pool; | 410 | Pool pool = NULL; /* suppress "may be used uninitialized" */ |
| 411 | Arena arena; | 411 | Arena arena; |
| 412 | Link link; | 412 | Link link; |
| 413 | Bool b; | 413 | Bool b; |