Commit 9575d1c7 authored by Daniel Stone's avatar Daniel Stone

tests: Use volatile pointer for NULL dereference

Clang warns that it can silently discard a non-volatile write to a NULL
pointer (perhaps it constitutes undefined behaviour?), and recommends
changing it to volatile.

This patch slavishly complies with the demand of the unfeeling machine.
Signed-off-by: Daniel Stone's avatarDaniel Stone <>
Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <>
Reviewed-by: Peter Hutterer's avatarPeter Hutterer <>
parent 4939923d
......@@ -70,8 +70,10 @@ FAIL_TEST(fail_kill)
char * volatile *null = 0;
* (char **) 0 = "Goodbye, world";
*null = "Goodbye, world";
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment