build: Drop unnecessary volatile qualifiers from configure tests

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>

Helps: #600
This commit is contained in:
Philip Withnall 2020-11-11 19:23:18 +00:00
parent 8a112c3c6e
commit daf90bfa99

View File

@ -1773,7 +1773,7 @@ endforeach
# that then to silently fall back on emulated atomic ops just because # that then to silently fall back on emulated atomic ops just because
# the user had the wrong build environment. # the user had the wrong build environment.
atomictest = '''int main() { atomictest = '''int main() {
volatile int atomic = 2; int atomic = 2;
__sync_bool_compare_and_swap (&atomic, 2, 3); __sync_bool_compare_and_swap (&atomic, 2, 3);
return 0; return 0;
} }
@ -1883,6 +1883,7 @@ endif
# FIXME: we should make it print the result and always return 0, so that # FIXME: we should make it print the result and always return 0, so that
# the output in meson shows up as green # the output in meson shows up as green
# volatile is needed here to avoid optimisations in the test
stack_grows_check_prog = ''' stack_grows_check_prog = '''
volatile int *a = 0, *b = 0; volatile int *a = 0, *b = 0;
void f (int i) { void f (int i) {