Merge "Add volatile to avoid clang optimization."
This commit is contained in:
commit
d88323b266
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ static void *noisy(void *x)
|
|||
for(;;) {
|
||||
usleep(250*1000);
|
||||
write(2, &c, 1);
|
||||
if(c == 'C') *((unsigned*) 0) = 42;
|
||||
if(c == 'C') *((volatile unsigned*) 0) = 42;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue