Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 013a2125 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Android Git Automerger
Browse files

am 7d5484b0: am 845867b2: am d88323b2: Merge "Add volatile to avoid clang optimization."

* commit '7d5484b0':
  Add volatile to avoid clang optimization.
parents fb17be47 7d5484b0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}