blob: 87b9f25ffc21b3c0318602f62bb886250e6c7a46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
Ripped from Debian
# DP: current_command must be declared volatile to prevent assignments from
# being optimized away as dead code. In reality, the use of setjmp/longjmp
# makes it not dead code at all.
--- a/eval.c
+++ b/eval.c
@@ -63,7 +63,7 @@
reader_loop ()
{
int our_indirection_level;
- COMMAND *current_command = (COMMAND *)NULL;
+ COMMAND * volatile current_command = (COMMAND *)NULL;
USE_VAR(current_command);
|