* 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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user