Fix userprog tests for clang
authorPablo de Oliveira <pablo@sifflez.org>
Mon, 17 Mar 2014 18:13:22 +0000 (19:13 +0100)
committerBen Pfaff <blp@cs.stanford.edu>
Tue, 18 Mar 2014 15:33:24 +0000 (08:33 -0700)
Recent clang version, detect attemps to dereference or call NULL, and
eliminate the code.

../../tests/userprog/bad-read.c:11:9: warning: indirection of
non-volatile null pointer will be deleted, not trap [-Wnull-dereference]
        *(int *) NULL);
        ^~~~~~~~~~~~~

This patchs adds the volatile modifier as necessary.
It allows to use clang to compile the tests.


No differences found