pike.git/
src/
builtin_functions.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-10-22
2014-10-22 17:19:23 by Arne Goedeke <el@laramies.com>
52af79968151534d3e79ea392d911ccb13631a2e (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
8.1
Fix -Wglobbered warnings.
One of them was actually legitimate.
4516:
*/ node **arg1 = my_get_arg(&_CDR(n), 1); node **arg2 = my_get_arg(&_CDR(n), 2);
-
struct program *replace_compiler = NULL;
+
-
+
/* This variable is modified in between setjmp and longjmp,
+
* so it needs to be volatile to prevent it from being globbered.
+
*/
+
struct program * volatile replace_compiler = NULL;
+
if (arg1 && ((pike_types_le((*arg1)->type, array_type_string) && arg2 && (pike_types_le((*arg2)->type, array_type_string) ||