diff options
| author | Richard Kistruck | 2008-12-22 17:33:05 +0000 |
|---|---|---|
| committer | Richard Kistruck | 2008-12-22 17:33:05 +0000 |
| commit | a899c472e1f32b6acd083ced9f7a2851c96b28f0 (patch) | |
| tree | 8d692ab025d5b843f24202e62c4141dd2fa36764 /mps/code | |
| parent | 262e9ae530ad9bfbe7359e731f31b589f00fed46 (diff) | |
| download | emacs-a899c472e1f32b6acd083ced9f7a2851c96b28f0.tar.gz emacs-a899c472e1f32b6acd083ced9f7a2851c96b28f0.zip | |
Mps br/timing zcoll.c: (fix unused variable)
Copied from Perforce
Change: 167018
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/zcoll.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mps/code/zcoll.c b/mps/code/zcoll.c index 8d8b3f894c6..b00b11aceeb 100644 --- a/mps/code/zcoll.c +++ b/mps/code/zcoll.c | |||
| @@ -120,7 +120,6 @@ static void get(mps_arena_t arena) | |||
| 120 | */ | 120 | */ |
| 121 | static void testscriptC(mps_arena_t arena, mps_ap_t ap, const char *script) | 121 | static void testscriptC(mps_arena_t arena, mps_ap_t ap, const char *script) |
| 122 | { | 122 | { |
| 123 | unsigned i; | ||
| 124 | const char *scriptAll = script; | 123 | const char *scriptAll = script; |
| 125 | int itemsread; | 124 | int itemsread; |
| 126 | int bytesread; | 125 | int bytesread; |
| @@ -132,7 +131,7 @@ static void testscriptC(mps_arena_t arena, mps_ap_t ap, const char *script) | |||
| 132 | unsigned objCount = 0; | 131 | unsigned objCount = 0; |
| 133 | unsigned makeTotal = 0; | 132 | unsigned makeTotal = 0; |
| 134 | unsigned wastefulness = 0; | 133 | unsigned wastefulness = 0; |
| 135 | itemsread = sscanf(script, "M(objs %u, wastefulness %u)%n", | 134 | itemsread = sscanf(script, "Make(objs %u, wastefulness %u)%n", |
| 136 | &makeTotal, &wastefulness, &bytesread); | 135 | &makeTotal, &wastefulness, &bytesread); |
| 137 | if(itemsread != 2) { | 136 | if(itemsread != 2) { |
| 138 | printf("bad script command %s (full script %s).\n", | 137 | printf("bad script command %s (full script %s).\n", |
| @@ -280,7 +279,7 @@ int main(int argc, char **argv) | |||
| 280 | randomize(argc, argv); | 279 | randomize(argc, argv); |
| 281 | 280 | ||
| 282 | /* The most basic scripts */ | 281 | /* The most basic scripts */ |
| 283 | testscriptA("M(objs 1500, wastefulness 50)"); | 282 | testscriptA("Make(objs 1500, wastefulness 50)"); |
| 284 | 283 | ||
| 285 | 284 | ||
| 286 | fflush(stdout); /* synchronize */ | 285 | fflush(stdout); /* synchronize */ |