Skip to content

Commit b692729

Browse files
committed
FIX: removing unreferenced local variables
1 parent 1870b5d commit b692729

File tree

9 files changed

+7
-11
lines changed

9 files changed

+7
-11
lines changed

src/core/c-do.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2208,7 +2208,7 @@ xx*/ REBVAL *Do_Path(REBVAL **path_val, REBVAL *val)
22082208
//REBVAL *val;
22092209
REBOL_STATE state;
22102210
REBVAL *val;
2211-
int MERGE_WITH_Do_String;
2211+
// int MERGE_WITH_Do_String;
22122212
// static D = 0;
22132213
// int depth = D++;
22142214

src/core/f-extension.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ x*/ int Do_Callback(REBSER *obj, u32 name, RXIARG *args, RXIARG *result)
313313
REBEXT *ext;
314314
RXICAL call;
315315
REBSER *src;
316-
int Remove_after_first_run;
316+
// int Remove_after_first_run;
317317
//Check_Security(SYM_EXTENSION, POL_EXEC, val);
318318

319319
if (!D_REF(2)) { // No /dispatch, use the DLL file:

src/core/n-crypt.c

-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ REBNATIVE(aes)
115115
REBVAL *ret = D_RET;
116116
REBSER *ctx;
117117
REBINT len, pad_len;
118-
REBYTE *data;
119118

120119
if (ref_key) {
121120
//key defined - setup new context

src/core/p-file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ REBINT Mode_Syms[] = {
262262
{
263263
REBI64 len; // maximum size
264264
REBI64 cnt;
265-
int what_if_it_changed;
265+
// int what_if_it_changed;
266266

267267
// Compute and bound bytes remaining:
268268
len = file->file.size - file->file.index; // already read

src/core/t-integer.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@
5656
REBI64 arg;
5757
REBINT n;
5858

59-
REBU64 p, a, b; // for overflow detection
60-
REBCNT a1, a0, b1, b0;
61-
REBFLG sgn;
59+
REBU64 p; // for overflow detection
6260
REBI64 anum;
6361

6462
num = VAL_INT64(val);

src/core/t-map.c

-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@
205205
REBSER *hser = series->series; // can be null
206206
REBCNT *hashes;
207207
REBCNT hash;
208-
REBVAL *v;
209208
REBCNT n;
210209

211210
if (IS_NONE(key) || hser == NULL) return 0;

src/core/u-gif.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ void Chrom_Key_Alpha(REBVAL *v,REBCNT col,REBINT blitmode) {
301301
Decode_LZW(dp, &cp, colormap, w, h, interlaced);
302302

303303
if(transparency_index >= 0) {
304-
int ADD_alpha_key_detection;
304+
//int ADD_alpha_key_detection;
305305
REBYTE *p=colormap+3*transparency_index;
306306
///Chroma_Key_Alpha(Temp_Value, (REBCNT)(p[2]|(p[1]<<8)|(p[0]<<16)), BLIT_MODE_COLOR);
307307
}

src/core/u-parse.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ void Print_Parse_Index(REBCNT type, REBVAL *rules, REBSER *series, REBCNT index)
184184
REBSER *series = parse->series;
185185
REBSER *ser;
186186
REBCNT flags = parse->flags | AM_FIND_MATCH | AM_FIND_TAIL;
187-
int rewrite_needed;
187+
// int rewrite_needed;
188188

189189
if (Trace_Level) {
190190
Trace_Value(7, item);

src/os/win32/dev-stdio.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ static void close_stdio(void)
198198
***********************************************************************/
199199
{
200200
REBDEV *dev;
201-
HANDLE win;
201+
// HANDLE win;
202202

203203
dev = Devices[req->device];
204204

0 commit comments

Comments
 (0)