tests: Use volatile pointer for NULL dereference
authorDaniel Stone <daniels@collabora.com>
Fri, 24 Aug 2018 15:48:13 +0000 (16:48 +0100)
committerDaniel Stone <daniels@collabora.com>
Wed, 29 Aug 2018 08:59:04 +0000 (09:59 +0100)
commit9575d1c772378df73cd421997b70d4a880575911
tree512d0378803bc58533ba9836c79dec274751fb25
parent4939923d3a8487f6644b1feb657693d8f929297b
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 <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
tests/sanity-test.c