1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

Fix warning: variable xxx might be clobbered by longjmp or vfork, that

occur with gcc 2.95.3.
This commit is contained in:
Laurent MONIN 2006-01-25 17:03:15 +01:00 committed by Laurent MONIN
parent 8a4a18796b
commit f6f66a28c8

View File

@ -197,7 +197,10 @@ see_eval_stringback(struct ecmascript_interpreter *interpreter,
struct SEE_input *input = SEE_input_elinks(interp, code->source);
SEE_try_context_t try_ctxt;
struct SEE_value result;
unsigned char *string = NULL;
/* 'volatile' qualifier prevents register allocation which fixes:
* warning: variable 'xxx' might be clobbered by 'longjmp' or 'vfork'
*/
unsigned char *volatile string = NULL;
g->exec_start = time(NULL);
SEE_TRY(interp, try_ctxt) {
@ -222,7 +225,10 @@ see_eval_boolback(struct ecmascript_interpreter *interpreter,
struct SEE_input *input = SEE_input_elinks(interp, code->source);
SEE_try_context_t try_ctxt;
struct SEE_value result;
SEE_int32_t res = 0;
/* 'volatile' qualifier prevents register allocation which fixes:
* warning: variable 'xxx' might be clobbered by 'longjmp' or 'vfork'
*/
SEE_int32_t volatile res = 0;
g->exec_start = time(NULL);
SEE_TRY(interp, try_ctxt) {