am d88323b2: Merge "Add volatile to avoid clang optimization."

* commit 'd88323b2667c443c2738eb601eb0b9eaad1c3049':
  Add volatile to avoid clang optimization.
This commit is contained in:
Chih-Hung Hsieh 2014-10-28 04:49:12 +00:00 committed by Android Git Automerger
commit 845867b2c2

View file

@ -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;
}