Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix to handle warnings+optimizations on CI for MC32 [#15544]
authorPaul Bédaride <paul.bedaride@gmail.com>
Mon, 6 May 2013 13:25:25 +0000 (15:25 +0200)
committerPaul Bédaride <paul.bedaride@gmail.com>
Mon, 6 May 2013 13:25:25 +0000 (15:25 +0200)
src/bindings/java/smx_context_cojava.c
src/mc/mc_checkpoint.c

index 6ecaca1..a7670a0 100644 (file)
@@ -264,7 +264,7 @@ static void smx_ctx_cojava_create_coroutine(smx_ctx_cojava_t context) {
      FILE *conf= fopen("/proc/sys/vm/max_map_count","r");
      if (conf) {
        int limit=-1;
-        if(!fscanf(conf,"%d",&limit))
+        if(fscanf(conf,"%d",&limit) != 1)
            xbt_die("Error while creating a new coroutine. Parse error.");
        fclose(conf);
        if (limit!=-1 && SIMIX_process_count() > (limit - 100) /2)
index 9b0650a..a89b14a 100644 (file)
@@ -463,7 +463,7 @@ static xbt_strbuff_t get_local_variables_values(void *stack_context, void *heap)
     to_append = bprintf("frame_name=%s\n", frame_name);
     xbt_strbuff_append(variables, to_append);
     xbt_free(to_append);
-    to_append = bprintf("ip=%lx\n", ip);
+    to_append = bprintf("ip=%lx\n", (unsigned long)ip);
     xbt_strbuff_append(variables, to_append);
     xbt_free(to_append);