Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
make MC compile with -Wmissing-declaration
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 11 Jan 2016 22:14:25 +0000 (23:14 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 11 Jan 2016 22:14:25 +0000 (23:14 +0100)
src/mc/RegionSnapshot.hpp
src/mc/mc_checkpoint.cpp
src/mc/mc_dwarf.cpp
src/mc/mc_dwarf_attrnames.cpp
src/mc/mc_dwarf_tagnames.cpp
src/mc/mc_global.cpp
src/mc/mc_member.cpp

index 04c1651..1ece645 100644 (file)
@@ -224,7 +224,8 @@ public:
 };
 
 RegionSnapshot privatized_region(
-  RegionType type, void *start_addr, void* data_addr, std::size_t size);
+    RegionType region_type, void *start_addr, void* permanent_addr,
+    std::size_t size, const RegionSnapshot* ref_region);
 RegionSnapshot dense_region(
   RegionType type, void *start_addr, void* data_addr, std::size_t size);
 simgrid::mc::RegionSnapshot sparse_region(
index 9aa90a6..fca86d0 100644 (file)
@@ -35,6 +35,7 @@
 #include "src/mc/mc_smx.h"
 #include "mc_hash.hpp"
 
+#include "src/mc/RegionSnapshot.hpp"
 #include "src/mc/ObjectInformation.hpp"
 #include "src/mc/Frame.hpp"
 #include "src/mc/Variable.hpp"
@@ -83,9 +84,9 @@ namespace simgrid {
 namespace mc {
 
 #ifdef HAVE_SMPI
-simgrid::mc::RegionSnapshot privatized_region(
+RegionSnapshot privatized_region(
     RegionType region_type, void *start_addr, void* permanent_addr,
-    std::size_t size, const simgrid::mc::RegionSnapshot* ref_region
+    std::size_t size, const RegionSnapshot* ref_region
     )
 {
   size_t process_count = MC_smpi_process_count();
index e7a7b6c..3886239 100644 (file)
@@ -132,7 +132,7 @@ enum class FormClass {
   RangeListPtr
 };
 
-XBT_PRIVATE
+static
 TagClass classify_tag(int tag)
 {
   switch (tag) {
@@ -191,7 +191,7 @@ TagClass classify_tag(int tag)
  *  \param form The form (values taken from the DWARF spec)
  *  \return An internal representation for the corresponding class
  * */
-XBT_PRIVATE
+static
 FormClass classify_form(int form)
 {
   switch (form) {
@@ -1270,4 +1270,4 @@ int dwarf_register_to_libunwind(int dwarf_register)
 }
 
 }
-}
\ No newline at end of file
+}
index 193379a..a1e00e5 100644 (file)
@@ -7,6 +7,7 @@
 /* Warning: autogenerated, do not edit! */
 
 #include <dwarf.h>
+#include <src/mc/mc_dwarf.hpp>
 
 #include <xbt/base.h>
 
index 19ee9af..cb73e9d 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <dwarf.h>
 #include <elfutils/libdw.h>
+#include "src/mc/mc_dwarf.hpp"
 
 #include <xbt/base.h>
 
index b1e8b48..76a2af2 100644 (file)
@@ -478,7 +478,7 @@ void MC_automaton_load(const char *file)
 }
 
 // TODO, fix cross-process access (this function is not used)
-void MC_dump_stacks(FILE* file)
+static void MC_dump_stacks(FILE* file)
 {
   int nstack = 0;
   for (auto const& stack : mc_model_checker->process().stack_areas()) {
index 0a5040b..683f82f 100644 (file)
@@ -9,6 +9,8 @@
 #include "src/mc/mc_object_info.h"
 #include "src/mc/mc_private.h"
 #include "src/mc/Type.hpp"
+#include "src/mc/mc_dwarf.hpp"
+
 
 namespace simgrid {
 namespace dwarf {