am d88323b2
: Merge "Add volatile to avoid clang optimization."
* commit 'd88323b2667c443c2738eb601eb0b9eaad1c3049': Add volatile to avoid clang optimization.
This commit is contained in:
commit
845867b2c2
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