From 00db56dc1eb37659b946d5b0f0d2fcd514c78a6f Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 26 Sep 2007 18:29:58 +0000 Subject: [PATCH] no need for return after a THROW (it will break the execution path, you can be sure of that, and gcc is aware of it too) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@4748 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/surf/workstation.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/surf/workstation.c b/src/surf/workstation.c index 5bcf287adf..f2704ddbe0 100644 --- a/src/surf/workstation.c +++ b/src/surf/workstation.c @@ -63,7 +63,6 @@ static const char *get_resource_name(void *resource_id) static int resource_used(void *resource_id) { THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */ - return 0; } static void parallel_action_cancel(surf_action_t action) @@ -74,7 +73,6 @@ static void parallel_action_cancel(surf_action_t action) static int parallel_action_free(surf_action_t action) { THROW_UNIMPLEMENTED; /* This model does not implement parallel tasks */ - return 0; } static void parallel_action_use(surf_action_t action) @@ -161,7 +159,6 @@ static void update_resource_state(void *id, double value) { THROW_IMPOSSIBLE; /* This model does not implement parallel tasks */ - return; } static surf_action_t execute(void *workstation, double size) @@ -262,7 +259,6 @@ static surf_action_t execute_parallel_task(int workstation_nb, double rate) { THROW_UNIMPLEMENTED; /* This model does not implement parallel tasks */ - return NULL; } -- 2.20.1