Skip to content

Commit 3e3e763

Browse files
committed
SCP: Unused variable warning
1 parent 01d65e5 commit 3e3e763

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scp.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5824,9 +5824,13 @@ return SCPE_OK;
58245824

58255825
t_stat sim_set_asynch (int32 flag, CONST char *cptr)
58265826
{
5827+
#ifdef SIM_ASYNCH_IO
58275828
const t_bool flag_bool = (flag != 0);
5829+
#endif
5830+
58285831
if (cptr && (*cptr != 0)) /* now eol? */
58295832
return SCPE_2MARG;
5833+
58305834
#ifdef SIM_ASYNCH_IO
58315835
if (flag_bool == sim_asynch_enabled) /* already set correctly? */
58325836
return SCPE_OK;
@@ -13338,7 +13342,7 @@ uint8 *match_buf = NULL;
1333813342
uint32 match_size;
1333913343
char *pattern_buf = NULL;
1334013344
sim_regex_t *compiled_re = NULL;
13341-
sim_re_capture_t re_nsub;
13345+
sim_re_capture_t re_nsub = 0;
1334213346
size_t i;
1334313347

1334413348
/* Validate the match string */

0 commit comments

Comments
 (0)