From: Arnaud Giersch Date: Thu, 30 Nov 2017 21:40:00 +0000 (+0100) Subject: Mark known unused parameters. X-Git-Tag: v3.18~197^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/b6ae756243a8eef1f2180a8ab47b08b906d6a4b8 Mark known unused parameters. --- diff --git a/teshsuite/msg/process-kill/process-kill.c b/teshsuite/msg/process-kill/process-kill.c index 37ee439037..9b2e48b02a 100644 --- a/teshsuite/msg/process-kill/process-kill.c +++ b/teshsuite/msg/process-kill/process-kill.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2007, 2009-2016. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007, 2009-2017. 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. */ @@ -7,7 +7,7 @@ XBT_LOG_NEW_DEFAULT_CATEGORY(msg_process_kill, "Messages specific for this msg example"); -static int victimA_fun(int argc, char* argv[]) +static int victimA_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) { XBT_INFO("Hello!"); XBT_INFO("Suspending myself"); @@ -18,13 +18,13 @@ static int victimA_fun(int argc, char* argv[]) return 0; } -static int victimB_fun(int argc, char* argv[]) +static int victimB_fun(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) { XBT_INFO("Terminates before being killed"); return 0; } -static int killer(int argc, char* argv[]) +static int killer(XBT_ATTRIB_UNUSED int argc, XBT_ATTRIB_UNUSED char* argv[]) { XBT_INFO("Hello!"); /* - First start a victim process */ msg_process_t victimA = MSG_process_create("victim A", victimA_fun, NULL, MSG_host_by_name("Fafard"));