From: Augustin Degomme Date: Mon, 29 Aug 2016 08:24:01 +0000 (+0200) Subject: remove the else clause that should never be reached in 5d98a94013, as it is reached... X-Git-Tag: v3_14~459^2~2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6d1966b91c415718f2e16486ec92925f698321da remove the else clause that should never be reached in 5d98a94013, as it is reached on winbuntu, and breaks privatization, which works without the clause. --- diff --git a/src/xbt/memory_map.cpp b/src/xbt/memory_map.cpp index 0db9b1f962..379a22e5ef 100644 --- a/src/xbt/memory_map.cpp +++ b/src/xbt/memory_map.cpp @@ -125,12 +125,8 @@ XBT_PRIVATE std::vector get_memory_map(pid_t pid) if (lfields[1][3] == 'p') memreg.flags |= MAP_PRIVATE; - else if (lfields[1][3] == 's') + else memreg.flags |= MAP_SHARED; - else { - xbt_die("Flag was neither 'p' (private) nor 's' (shared). This should have never happened! Instead, the permissions column was set to: %s\n" - "This was the whole line that caused the trouble: %s", lfields[1], line); - } /* Get the offset value */ memreg.offset = std::strtoull(lfields[2], &endptr, 16);