Skip to content

Commit d5a5b48

Browse files
committedJul 30, 2018
Catch-up merge from master sources at changelevel 194776 to version/1.117.
Copied from Perforce Change: 194779
2 parents 65710cb + 2f50b92 commit d5a5b48

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed
 

‎code/ananmv.nmk

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# ananmv.nmk: ANSI/ANSI/MICROSOFT VISUAL C/C++ NMAKE FILE -*- makefile -*-
22
#
33
# $Id$
4-
# Copyright (c) 2001-2014 Ravenbrook Limited. See end of file for license.
4+
# Copyright (c) 2001-2018 Ravenbrook Limited. See end of file for license.
55

66
PFM = ananmv
77

@@ -13,7 +13,6 @@ MPMPF = \
1313
[prmcanan] \
1414
[protan] \
1515
[span] \
16-
[ssan] \
1716
[than] \
1817
[vman]
1918

@@ -24,7 +23,7 @@ MPMPF = \
2423

2524
# C. COPYRIGHT AND LICENSE
2625
#
27-
# Copyright (C) 2001-2014 Ravenbrook Limited <http://www.ravenbrook.com/>.
26+
# Copyright (C) 2001-2018 Ravenbrook Limited <http://www.ravenbrook.com/>.
2827
# All rights reserved. This is an open source license. Contact
2928
# Ravenbrook for commercial licensing options.
3029
#

‎code/poolmv2.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ static Bool MVTSplinterFill(Addr *baseReturn, Addr *limitReturn,
574574
static void MVTOneSegOnly(Addr *baseIO, Addr *limitIO, MVT mvt, Size minSize)
575575
{
576576
Addr base, limit, segLimit;
577-
Seg seg;
577+
Seg seg = NULL; /* suppress "may be used uninitialized" */
578578
Arena arena;
579579

580580
base = *baseIO;
@@ -979,7 +979,7 @@ static void MVTFree(Pool pool, Addr base, Size size)
979979
/* <design/poolmvt/#arch.ap.no-fit.oversize.policy> */
980980
/* Return exceptional blocks directly to arena */
981981
if (size > mvt->fillSize) {
982-
Seg seg;
982+
Seg seg = NULL; /* suppress "may be used uninitialized" */
983983
SURELY(SegOfAddr(&seg, PoolArena(pool), base));
984984
AVER(base == SegBase(seg));
985985
AVER(limit <= SegLimit(seg));
@@ -1190,7 +1190,7 @@ static Bool MVTReturnSegs(MVT mvt, Range range, Arena arena)
11901190
limit = RangeLimit(range);
11911191

11921192
while (base < limit) {
1193-
Seg seg;
1193+
Seg seg = NULL; /* suppress "may be used uninitialized" */
11941194
Addr segBase, segLimit;
11951195

11961196
SURELY(SegOfAddr(&seg, arena, base));
@@ -1331,7 +1331,7 @@ static Bool MVTContingencySearch(Addr *baseReturn, Addr *limitReturn,
13311331

13321332
static Bool MVTCheckFit(Addr base, Addr limit, Size min, Arena arena)
13331333
{
1334-
Seg seg;
1334+
Seg seg = NULL; /* suppress "may be used uninitialized" */
13351335
Addr segLimit;
13361336

13371337
SURELY(SegOfAddr(&seg, arena, base));

‎test/argerr/148.c

+1
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ static mps_res_t myscan(mps_ss_t ss, mps_addr_t base, mps_addr_t limit)
222222
*/
223223
comment("About to fix with null pointer...");
224224
MPS_SCAN_BEGIN(ss) {
225+
(void)MPS_FIX1(ss, NULL);
225226
res = MPS_FIX2(ss, NULL);
226227
} MPS_SCAN_END(ss);
227228
error("fix with null pointer");

0 commit comments

Comments
 (0)