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

Commit d88323b2 authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Gerrit Code Review
Browse files

Merge "Add volatile to avoid clang optimization."

parents 5bea7edd a1ff475b
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;
}