From: Augustin Degomme Date: Tue, 11 Jun 2013 22:07:48 +0000 (+0200) Subject: remove warnings X-Git-Tag: v3_9_90~276^2~11 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/96619dfc463a060fd90d26d333ca0134d7c32429 remove warnings --- diff --git a/examples/java/io/Node.java b/examples/java/io/Node.java index a0e1f9547b..6885c7d8f9 100644 --- a/examples/java/io/Node.java +++ b/examples/java/io/Node.java @@ -45,7 +45,7 @@ public class Node extends Process { filename = FILENAME1; } Msg.info("Open file " + filename); - File file = new File(mount,filename, "rw"); + File file = new File(mount,filename); long read = file.read(10000000,1); Msg.info("Having read " + read + " on " + filename); @@ -56,4 +56,4 @@ public class Node extends Process { read = file.read(10000000,1); Msg.info("Having read " + read + " on " + filename); } -} \ No newline at end of file +} diff --git a/src/surf/storage.c b/src/surf/storage.c index dfc0359b2b..20105acaf4 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -212,7 +212,7 @@ static void* storage_create_resource(const char* id, const char* model,const cha double Bread = atof(xbt_dict_get(storage_type->properties,"Bread")); double Bwrite = atof(xbt_dict_get(storage_type->properties,"Bwrite")); double Bconnection = atof(xbt_dict_get(storage_type->properties,"Bconnection")); - XBT_DEBUG("Create resource with Bconnection '%f' Bread '%f' Bwrite '%f' and Size '%ld'",Bconnection,Bread,Bwrite,storage_type->size); + XBT_DEBUG("Create resource with Bconnection '%f' Bread '%f' Bwrite '%f' and Size '%lu'",Bconnection,Bread,Bwrite,(unsigned long)storage_type->size); storage->constraint = lmm_constraint_new(storage_maxmin_system, storage, Bconnection); storage->constraint_read = lmm_constraint_new(storage_maxmin_system, storage, Bread); storage->constraint_write = lmm_constraint_new(storage_maxmin_system, storage, Bwrite); @@ -539,7 +539,7 @@ static xbt_dict_t parse_storage_content(char *filename, size_t *used_size) while ((read = xbt_getline(&line, &len, file)) != -1) { if (read){ - if(sscanf(line,"%s %ld",path, &size)==2) { + if(sscanf(line,"%s %lu",path, &size)==2) { *used_size += size; xbt_dict_set(parse_content,path,(void*) size,NULL); } else {