diff options
| author | Richard Brooksby | 2012-09-03 13:15:34 +0100 |
|---|---|---|
| committer | Richard Brooksby | 2012-09-03 13:15:34 +0100 |
| commit | d3aacdebfc18450b32531dadf7d9c2d4091faba6 (patch) | |
| tree | 476da0c7cbbe6139eeb19236401bcb61847a8835 /mps/code | |
| parent | 5140062cd6f1736f72b328ae0a15dca754629bed (diff) | |
| download | emacs-d3aacdebfc18450b32531dadf7d9c2d4091faba6.tar.gz emacs-d3aacdebfc18450b32531dadf7d9c2d4091faba6.zip | |
Suppressing warnings revealed by increased level of optimisation and building the mps from mps.c
Copied from Perforce
Change: 179192
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/buffer.c | 2 | ||||
| -rw-r--r-- | mps/code/dbgpool.c | 4 | ||||
| -rw-r--r-- | mps/code/global.c | 2 | ||||
| -rw-r--r-- | mps/code/poolmrg.c | 2 | ||||
| -rw-r--r-- | mps/code/poolmv.c | 2 | ||||
| -rw-r--r-- | mps/code/poolmvff.c | 2 | ||||
| -rw-r--r-- | mps/code/poolsnc.c | 2 |
7 files changed, 8 insertions, 8 deletions
diff --git a/mps/code/buffer.c b/mps/code/buffer.c index 9b7748c6572..c7dc6edd82e 100644 --- a/mps/code/buffer.c +++ b/mps/code/buffer.c | |||
| @@ -1330,7 +1330,7 @@ static void segBufAttach(Buffer buffer, Addr base, Addr limit, | |||
| 1330 | Addr init, Size size) | 1330 | Addr init, Size size) |
| 1331 | { | 1331 | { |
| 1332 | SegBuf segbuf; | 1332 | SegBuf segbuf; |
| 1333 | Seg seg; | 1333 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 1334 | Arena arena; | 1334 | Arena arena; |
| 1335 | Bool found; | 1335 | Bool found; |
| 1336 | 1336 | ||
diff --git a/mps/code/dbgpool.c b/mps/code/dbgpool.c index c7978249596..c433d044ef1 100644 --- a/mps/code/dbgpool.c +++ b/mps/code/dbgpool.c | |||
| @@ -224,7 +224,7 @@ static void freeSplat(PoolDebugMixin debug, Pool pool, Addr base, Addr limit) | |||
| 224 | Addr p, next; | 224 | Addr p, next; |
| 225 | Size freeSize = debug->freeSize; | 225 | Size freeSize = debug->freeSize; |
| 226 | Arena arena; | 226 | Arena arena; |
| 227 | Seg seg; | 227 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 228 | Bool inSeg; | 228 | Bool inSeg; |
| 229 | 229 | ||
| 230 | AVER(base < limit); | 230 | AVER(base < limit); |
| @@ -258,7 +258,7 @@ static Bool freeCheck(PoolDebugMixin debug, Pool pool, Addr base, Addr limit) | |||
| 258 | Size freeSize = debug->freeSize; | 258 | Size freeSize = debug->freeSize; |
| 259 | Res res; | 259 | Res res; |
| 260 | Arena arena; | 260 | Arena arena; |
| 261 | Seg seg; | 261 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 262 | Bool inSeg; | 262 | Bool inSeg; |
| 263 | 263 | ||
| 264 | AVER(base < limit); | 264 | AVER(base < limit); |
diff --git a/mps/code/global.c b/mps/code/global.c index 4d647a3754c..1997efbba6d 100644 --- a/mps/code/global.c +++ b/mps/code/global.c | |||
| @@ -915,7 +915,7 @@ void ArenaPokeSeg(Arena arena, Seg seg, Addr addr, Ref ref) | |||
| 915 | Ref ArenaRead(Arena arena, Addr addr) | 915 | Ref ArenaRead(Arena arena, Addr addr) |
| 916 | { | 916 | { |
| 917 | Bool b; | 917 | Bool b; |
| 918 | Seg seg; | 918 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 919 | 919 | ||
| 920 | AVERT(Arena, arena); | 920 | AVERT(Arena, arena); |
| 921 | 921 | ||
diff --git a/mps/code/poolmrg.c b/mps/code/poolmrg.c index 6abba410f72..d55f8af9f3b 100644 --- a/mps/code/poolmrg.c +++ b/mps/code/poolmrg.c | |||
| @@ -332,7 +332,7 @@ static Count MRGGuardiansPerSeg(MRG mrg) | |||
| 332 | 332 | ||
| 333 | static RefPart MRGRefPartOfLink(Link link, Arena arena) | 333 | static RefPart MRGRefPartOfLink(Link link, Arena arena) |
| 334 | { | 334 | { |
| 335 | Seg seg; | 335 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 336 | Bool b; | 336 | Bool b; |
| 337 | Link linkBase; | 337 | Link linkBase; |
| 338 | Index index; | 338 | Index index; |
diff --git a/mps/code/poolmv.c b/mps/code/poolmv.c index a7026276008..6a682da6707 100644 --- a/mps/code/poolmv.c +++ b/mps/code/poolmv.c | |||
| @@ -574,7 +574,7 @@ static void MVFree(Pool pool, Addr old, Size size) | |||
| 574 | MV mv; | 574 | MV mv; |
| 575 | Res res; | 575 | Res res; |
| 576 | Bool b; | 576 | Bool b; |
| 577 | Tract tract; | 577 | Tract tract = NULL; /* suppress "may be used uninitialized" */ |
| 578 | 578 | ||
| 579 | AVERT(Pool, pool); | 579 | AVERT(Pool, pool); |
| 580 | mv = Pool2MV(pool); | 580 | mv = Pool2MV(pool); |
diff --git a/mps/code/poolmvff.c b/mps/code/poolmvff.c index 1bbe1e85806..b83b58243bb 100644 --- a/mps/code/poolmvff.c +++ b/mps/code/poolmvff.c | |||
| @@ -112,7 +112,7 @@ static void MVFFAddToFreeList(Addr *baseIO, Addr *limitIO, MVFF mvff) { | |||
| 112 | */ | 112 | */ |
| 113 | static void MVFFFreeSegs(MVFF mvff, Addr base, Addr limit) | 113 | static void MVFFFreeSegs(MVFF mvff, Addr base, Addr limit) |
| 114 | { | 114 | { |
| 115 | Seg seg; | 115 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 116 | Arena arena; | 116 | Arena arena; |
| 117 | Bool b; | 117 | Bool b; |
| 118 | Addr segLimit; /* limit of the current segment when iterating */ | 118 | Addr segLimit; /* limit of the current segment when iterating */ |
diff --git a/mps/code/poolsnc.c b/mps/code/poolsnc.c index c9b1c20098e..eda496d450f 100644 --- a/mps/code/poolsnc.c +++ b/mps/code/poolsnc.c | |||
| @@ -590,7 +590,7 @@ static void SNCFramePopPending(Pool pool, Buffer buf, AllocFrame frame) | |||
| 590 | 590 | ||
| 591 | } else { | 591 | } else { |
| 592 | Arena arena; | 592 | Arena arena; |
| 593 | Seg seg; | 593 | Seg seg = NULL; /* suppress "may be used uninitialized" */ |
| 594 | Bool foundSeg; | 594 | Bool foundSeg; |
| 595 | 595 | ||
| 596 | arena = PoolArena(pool); | 596 | arena = PoolArena(pool); |