gras_socket_t from;
xbt_matrix_t request[2], answer;
- int i, j;
+ int i;
+ _XBT_GNUC_UNUSED int j;
const char *host = "127.0.0.1";
int port = 4000;
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
- const char *value;
+ _XBT_GNUC_UNUSED const char *value;
/* Let the other process change the host props */
gras_os_sleep(1);
xbt_dict_t host_props = gras_os_host_properties();
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
- const char *value;
+ _XBT_GNUC_UNUSED const char *value;
XBT_INFO("== Dump all the properties of host1");
xbt_dict_foreach(host_props, cursor, key, data)
int receiver(int argc, char *argv[])
{
m_task_t task = NULL;
- MSG_error_t res;
+ _XBT_GNUC_UNUSED MSG_error_t res;
int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
XBT_INFO("sleep_start_time : %f , sleep_test_time : %f", sleep_start_time,
sleep_test_time);
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &id);
xbt_assert(read,
"Invalid argument %s\n", argv[1]);
int receiver(int argc, char *argv[])
{
m_task_t task = NULL;
- MSG_error_t res;
+ _XBT_GNUC_UNUSED MSG_error_t res;
int id = -1;
char mailbox[80];
msg_comm_t res_irecv;
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &id);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
MSG_process_sleep(10);
sprintf(mailbox, "finalize");
msg_comm_t res_irecv;
- MSG_error_t res_wait;
+ _XBT_GNUC_UNUSED MSG_error_t res_wait;
for (i = 0; i < receivers_count; i++) {
task = NULL;
res_irecv = MSG_task_irecv(&(task), mailbox);
int tasks = atof(argv[2]);
m_task_t *task = xbt_new(m_task_t, tasks);
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &id);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
sprintf(mailbox, "receiver-%d", id);
/* Here we are waiting for the receiving of all communications */
m_task_t task_com;
while (!xbt_dynar_is_empty(comms)) {
- MSG_error_t err;
+ _XBT_GNUC_UNUSED MSG_error_t err;
xbt_dynar_remove_at(comms, MSG_comm_waitany(comms), &res_irecv);
task_com = MSG_comm_get_task(res_irecv);
MSG_comm_destroy(res_irecv);
double task_comp_size = 0;
double task_comm_size = 0;
int i;
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &number_of_tasks);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
double task_comp_size = 0;
double task_comm_size = 0;
int i;
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &number_of_tasks);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
int slave(int argc, char *argv[])
{
m_task_t task = NULL;
- int res;
+ _XBT_GNUC_UNUSED int res;
int id = -1;
char mailbox[80];
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &id);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
double task_comp_size = 0;
double task_comm_size = 0;
int i;
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &number_of_tasks);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
int i;
- int res = sscanf(argv[1], "%d", &number_of_tasks);
+ _XBT_GNUC_UNUSED int res = sscanf(argv[1], "%d", &number_of_tasks);
xbt_assert(res,"Invalid argument %s\n", argv[1]);
res = sscanf(argv[2], "%lg", &task_comp_size);
xbt_assert(res, "Invalid argument %s\n", argv[2]);
int slave(int argc, char *argv[])
{
m_task_t task = NULL;
- int res;
+ _XBT_GNUC_UNUSED int res;
while (1) {
res = MSG_task_get(&(task), PORT_22);
xbt_assert(res == MSG_OK, "MSG_task_get failed");
int slave(int argc, char *argv[])
{
m_task_t task = NULL;
- int res;
+ _XBT_GNUC_UNUSED int res;
int id = -1;
char mailbox[80];
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[1], "%d", &id);
xbt_assert(read, "Invalid argument %s\n", argv[1]);
"Unknown host %s. Stopping Now! ", argv[i]);
}
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[argc - 2], "%lg", &computation_amount);
xbt_assert(read, "Invalid argument %s\n", argv[argc - 2]);
read = sscanf(argv[argc - 1], "%lg", &communication_amount);
"Unknown host %s. Stopping Now! ", argv[i]);
}
- int read;
+ _XBT_GNUC_UNUSED int read;
read = sscanf(argv[argc - 1], "%lg", &communication_amount);
xbt_assert(read, "Invalid argument %s\n", argv[argc - 1]);
computation_duration = (double *) calloc(host_list_size, sizeof(double));
double priority = 1.0;
m_task_t task = NULL;
- int res = sscanf(argv[1], "%lg", &computation_amount);
+ _XBT_GNUC_UNUSED int res = sscanf(argv[1], "%lg", &computation_amount);
xbt_assert(res, "Invalid argument %s\n", argv[1]);
res = sscanf(argv[2], "%lg", &priority);
xbt_assert(res, "Invalid argument %s\n", argv[2]);
xbt_dict_cursor_t cursor = NULL;
char *key, *data;
const char *noexist = "UnknownProcessProp";
- const char *value;
+ _XBT_GNUC_UNUSED const char *value;
XBT_INFO("== Print the properties of the process");
xbt_dict_foreach(props, cursor, key, data)
buffer.data = xbt_new(char, buffer.capacity);
/* copy the binary chunk from src into a buffer */
- int error = lua_dump(src, sglua_memory_writer, &buffer);
+ _XBT_GNUC_UNUSED int error = lua_dump(src, sglua_memory_writer, &buffer);
xbt_assert(!error, "Failed to dump the function from the source state: error %d",
error);
XBT_DEBUG("Fonction dumped: %zu bytes", buffer.size);
lua_pushstring(L, argv[i]);
/* call the function */
- int err;
+ _XBT_GNUC_UNUSED int err;
err = lua_pcall(L, argc - 1, 1, 0);
xbt_assert(err == 0, "error running function `%s': %s", argv[0],
lua_tostring(L, -1));
xbt_dynar_push(result, &root_task);
end_task = SD_task_create_comp_seq("end", NULL, 0);
- int res;
+ _XBT_GNUC_UNUSED int res;
res = dax_lex();
xbt_assert(!res, "Parse error in %s: %s", filename,
dax__parse_err_msg());
void STag_dax__adag(void)
{
- double version;
+ _XBT_GNUC_UNUSED double version;
version = dax_parse_double(A_dax__adag_version);
xbt_assert(version == 2.1,
*/
void SIMIX_launch_application(const char *file)
{
- int parse_status;
+ _XBT_GNUC_UNUSED int parse_status;
xbt_assert(simix_global,
"SIMIX_global_init has to be called before SIMIX_launch_application.");
/* solve the indication */
const char **param_list;
- int param_size;
+ _XBT_GNUC_UNUSED int param_size;
if (value[i] == 's' && value[i + 1] == 'r' && value[i + 2] == 'c') {
param_list = src_list;
param_size = src_size;
int ovector_dst[OVECCOUNT];
const char **list_src = NULL;
const char **list_dst = NULL;
- int res;
+ _XBT_GNUC_UNUSED int res;
xbt_dynar_foreach(rule_list, cpt, ruleroute) {
rc_src =
pcre_exec(ruleroute->re_src, NULL, src, src_length, 0, 0,
void STag_surfxml_platform(void)
{
- double version = surf_parse_get_double(A_surfxml_platform_version);
+ _XBT_GNUC_UNUSED double version = surf_parse_get_double(A_surfxml_platform_version);
xbt_assert((version >= 1.0), "******* BIG FAT WARNING *********\n "
"You're using an ancient XML file.\n"
"available in the tools/ directory of the source archive.");
surfxml_call_cb_functions(STag_surfxml_platform_cb_list);
-
}
void STag_surfxml_host(void){
static void count_check_get_key(xbt_dict_t dict, int length)
{
xbt_dict_cursor_t cursor;
- char *key, *key2;
+ char *key;
+ _XBT_GNUC_UNUSED char *key2;
void *data;
int effective = 0;
ETag_graphxml_edge_fun = __parse_edge;
xbt_graph_parse_open(filename);
- int res;
+ _XBT_GNUC_UNUSED int res;
res = (*xbt_graph_parse) ();
xbt_assert(!res, "Parse error in %s", filename);
xbt_graph_parse_close();
double xbt_graph_parse_get_double(const char *string)
{
double result;
- int ret = 0;
+ _XBT_GNUC_UNUSED int ret = 0;
ret = sscanf(string, "%lg", &result);
xbt_assert((ret == 1), "Parse error line %d : %s not a number",
char *palstr;
xbt_ex_t e;
- int got_expected;
- double now;
+ _XBT_GNUC_UNUSED int got_expected;
+ _XBT_GNUC_UNUSED double now;
gras_init(&argc, argv);