diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-24 01:51:39 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-24 01:51:39 +0000 |
commit | b831fc4446e34fbcf513bcb44956e2d654f2b401 (patch) | |
tree | 453ae73d9f8d88fef4e6cd4899bd0691c23adfb5 /winsup/testsuite/winsup.api/ltp/mmap05.c | |
parent | 8e61c0495ee7f1df6909cae2ffb4d32d40240d00 (diff) | |
download | cygnal-b831fc4446e34fbcf513bcb44956e2d654f2b401.tar.gz cygnal-b831fc4446e34fbcf513bcb44956e2d654f2b401.tar.bz2 cygnal-b831fc4446e34fbcf513bcb44956e2d654f2b401.zip |
* libltp/include/usctest.h: Add externs to some variables that need it.
* winsup.api/ltp/mmap05.c (main): Make file_content volatile to avoid
optimization glitch.
Diffstat (limited to 'winsup/testsuite/winsup.api/ltp/mmap05.c')
-rw-r--r-- | winsup/testsuite/winsup.api/ltp/mmap05.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/ltp/mmap05.c b/winsup/testsuite/winsup.api/ltp/mmap05.c index f42adf0b7..3a7783df8 100644 --- a/winsup/testsuite/winsup.api/ltp/mmap05.c +++ b/winsup/testsuite/winsup.api/ltp/mmap05.c @@ -104,7 +104,7 @@ main(int ac, char **av) { int lc; /* loop counter */ const char *msg; /* message returned from parse_opts */ - char file_content; /* tempfile content */ + volatile char file_content; /* tempfile content */ /* Parse standard options given to run the test. */ msg = parse_opts(ac, av, (option_t *) NULL, NULL); |