mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Suppressing warnings revealed by increased level of optimisation and building the mps from mps.c
Copied from Perforce Change: 179192 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
5140062cd6
commit
d3aacdebfc
7 changed files with 8 additions and 8 deletions
|
|
@ -1330,7 +1330,7 @@ static void segBufAttach(Buffer buffer, Addr base, Addr limit,
|
|||
Addr init, Size size)
|
||||
{
|
||||
SegBuf segbuf;
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
Arena arena;
|
||||
Bool found;
|
||||
|
||||
|
|
|
|||
|
|
@ -224,7 +224,7 @@ static void freeSplat(PoolDebugMixin debug, Pool pool, Addr base, Addr limit)
|
|||
Addr p, next;
|
||||
Size freeSize = debug->freeSize;
|
||||
Arena arena;
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
Bool inSeg;
|
||||
|
||||
AVER(base < limit);
|
||||
|
|
@ -258,7 +258,7 @@ static Bool freeCheck(PoolDebugMixin debug, Pool pool, Addr base, Addr limit)
|
|||
Size freeSize = debug->freeSize;
|
||||
Res res;
|
||||
Arena arena;
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
Bool inSeg;
|
||||
|
||||
AVER(base < limit);
|
||||
|
|
|
|||
|
|
@ -915,7 +915,7 @@ void ArenaPokeSeg(Arena arena, Seg seg, Addr addr, Ref ref)
|
|||
Ref ArenaRead(Arena arena, Addr addr)
|
||||
{
|
||||
Bool b;
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
|
||||
AVERT(Arena, arena);
|
||||
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ static Count MRGGuardiansPerSeg(MRG mrg)
|
|||
|
||||
static RefPart MRGRefPartOfLink(Link link, Arena arena)
|
||||
{
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
Bool b;
|
||||
Link linkBase;
|
||||
Index index;
|
||||
|
|
|
|||
|
|
@ -574,7 +574,7 @@ static void MVFree(Pool pool, Addr old, Size size)
|
|||
MV mv;
|
||||
Res res;
|
||||
Bool b;
|
||||
Tract tract;
|
||||
Tract tract = NULL; /* suppress "may be used uninitialized" */
|
||||
|
||||
AVERT(Pool, pool);
|
||||
mv = Pool2MV(pool);
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ static void MVFFAddToFreeList(Addr *baseIO, Addr *limitIO, MVFF mvff) {
|
|||
*/
|
||||
static void MVFFFreeSegs(MVFF mvff, Addr base, Addr limit)
|
||||
{
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
Arena arena;
|
||||
Bool b;
|
||||
Addr segLimit; /* limit of the current segment when iterating */
|
||||
|
|
|
|||
|
|
@ -590,7 +590,7 @@ static void SNCFramePopPending(Pool pool, Buffer buf, AllocFrame frame)
|
|||
|
||||
} else {
|
||||
Arena arena;
|
||||
Seg seg;
|
||||
Seg seg = NULL; /* suppress "may be used uninitialized" */
|
||||
Bool foundSeg;
|
||||
|
||||
arena = PoolArena(pool);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue