From 883c611168c625313328529be4500714117c2bff Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 17 Jul 2007 16:33:35 +0000 Subject: [PATCH] try to not make the messages change (even if I fail to see why the err variable becomes crazy with optimization enabled) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3852 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- examples/gras/rpc/rpc.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/gras/rpc/rpc.c b/examples/gras/rpc/rpc.c index 14e27e460e..240c27d78c 100644 --- a/examples/gras/rpc/rpc.c +++ b/examples/gras/rpc/rpc.c @@ -11,9 +11,6 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(Rpc,"Messages specific to this example"); -int err=0; /* to make the message of the raised exception more informative and - even be able to follow their propagation from server to client*/ - /* register messages which may be sent (common to client and server) */ static void register_messages(void) { gras_msgtype_declare_rpc("plain ping", @@ -31,7 +28,7 @@ int forwarder (int argc,char *argv[]); int client (int argc,char *argv[]); static void exception_raising(void) { - THROW1(unknown_error,42,"Some error we will catch on client side %d",err++); + THROW0(unknown_error,42,"Some error we will catch on client side"); } static void exception_catching(void) { int gotit = 0,i; -- 2.20.1