X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/3cf8dfbfab4595b3e7ae85d3cd89ce9dbcdd7a24..9fd6cbc6c3b06f4b09e3c3339ffb3cc8a68f9bfa:/tools/cmake/test_prog/prog_stacksetup.c diff --git a/tools/cmake/test_prog/prog_stacksetup.c b/tools/cmake/test_prog/prog_stacksetup.c index 542847d17d..37a633560e 100644 --- a/tools/cmake/test_prog/prog_stacksetup.c +++ b/tools/cmake/test_prog/prog_stacksetup.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2010, 2014-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2010-2018. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -19,7 +19,7 @@ union alltypes { void (*fp) (void); char *cp; }; -static volatile char *handler_addr = (char *) 0xDEAD; +static char *handler_addr = (char *) 0xDEAD; static ucontext_t uc_handler; static ucontext_t uc_main; void handler(void) @@ -57,13 +57,13 @@ int main(int argc, char *argv[]) if (handler_addr < skaddr + sksize) { /* stack was placed into lower area */ if (*(skaddr + sksize) != 'A') - printf("(skaddr)+(sksize)-%d;(sksize)-%d", sizeof(union alltypes), sizeof(union alltypes)); + printf("(skaddr)+(sksize)-%zu;(sksize)-%zu", sizeof(union alltypes), sizeof(union alltypes)); else printf("(skaddr)+(sksize);(sksize)"); } else { /* stack was placed into higher area */ if (*(skaddr + sksize * 2) != 'A') - printf("(skaddr);(sksize)-%d", sizeof(union alltypes)); + printf("(skaddr);(sksize)-%zu", sizeof(union alltypes)); else printf("(skaddr);(sksize)"); }