mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-09 13:18:15 +00:00
Get rid of the remaining "set but not used" warnings reported by gcc 4.6 by
swapping the roles of the VALGRIND_DO_CLIENT_REQUEST() and VALGRIND_DO_CLIENT_REQUEST_EXPR() macros. Also, many __attribute__((unused)) declarations on variables have been eliminated. Closes #269778. Note: so far this patch has been tested on x86/Linux, amd64/Linux and ppc64/Linux but not yet on any other supported CPU/OS combination. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11755
This commit is contained in:
@@ -62,9 +62,9 @@ int main(int argc, char **argv)
|
||||
|
||||
swapcontext(&oldc, &ctx1);
|
||||
|
||||
VALGRIND_STACK_DEREGISTER(c1);
|
||||
(void)VALGRIND_STACK_DEREGISTER(c1);
|
||||
//free(ctx1.uc_stack.ss_sp);
|
||||
VALGRIND_STACK_DEREGISTER(c2);
|
||||
(void)VALGRIND_STACK_DEREGISTER(c2);
|
||||
//free(ctx2.uc_stack.ss_sp);
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user