From: Martin Quinson Date: Thu, 13 Jul 2017 10:41:00 +0000 (+0200) Subject: codacy X-Git-Tag: v3_17~398 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/50ac3e136606baf487eedb6d42729c4e46f55386 codacy --- diff --git a/src/bindings/java/org/simgrid/msg/Process.java b/src/bindings/java/org/simgrid/msg/Process.java index 355856d916..43dc342508 100644 --- a/src/bindings/java/org/simgrid/msg/Process.java +++ b/src/bindings/java/org/simgrid/msg/Process.java @@ -313,7 +313,7 @@ public abstract class Process implements Runnable { } /** - * The main function of the process (to implement). + * The main function of the process (to implement by the user). * * @param args * @throws MsgException diff --git a/src/mc/ChunkedData.hpp b/src/mc/ChunkedData.hpp index 330f2c9841..9652ea1095 100644 --- a/src/mc/ChunkedData.hpp +++ b/src/mc/ChunkedData.hpp @@ -51,7 +51,7 @@ public: ChunkedData(ChunkedData const& that) : store_ (that.store_) , pagenos_(that.pagenos_) - + { for (std::size_t pageno : pagenos_) store_->ref_page(pageno); diff --git a/src/mc/DwarfExpression.hpp b/src/mc/DwarfExpression.hpp index 4b1f202f26..1bf89d8943 100644 --- a/src/mc/DwarfExpression.hpp +++ b/src/mc/DwarfExpression.hpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2015. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2015-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. */ @@ -72,7 +71,7 @@ public: static const std::size_t max_size = 64; private: // Values of the stack (the top is stack_[size_ - 1]): - uintptr_t stack_[max_size]; + uintptr_t stack_[max_size] {0}; size_t size_; public: ExpressionStack() : size_(0) {} diff --git a/src/xbt/memory_map.cpp b/src/xbt/memory_map.cpp index ae6113c147..b2185d7266 100644 --- a/src/xbt/memory_map.cpp +++ b/src/xbt/memory_map.cpp @@ -232,7 +232,6 @@ XBT_PRIVATE std::vector get_memory_map(pid_t pid) xbt_abort(); memreg.prot = 0; - for (i = 0; i < 3; i++){ switch(lfields[1][i]){ case 'r': @@ -251,6 +250,7 @@ XBT_PRIVATE std::vector get_memory_map(pid_t pid) if (memreg.prot == 0) memreg.prot |= PROT_NONE; + memreg.flags = 0; if (lfields[1][3] == 'p') { memreg.flags |= MAP_PRIVATE; } else {