Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix clang warnings about mismatched declarations (struct vs. class).
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 21 Nov 2013 10:51:01 +0000 (11:51 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Thu, 21 Nov 2013 10:52:02 +0000 (11:52 +0100)
src/include/surf/surf.h
src/surf/surf_routing.hpp

index 67db839..07bda08 100644 (file)
@@ -57,8 +57,8 @@ class Cpu;
 class Action;
 class ActionLmm;
 class StorageActionLmm;
-class As;
-class RoutingEdge;
+struct As;
+struct RoutingEdge;
 class RoutingPlatf;
 #else
 typedef struct Model Model;
index 6f7a568..2c47691 100644 (file)
@@ -14,13 +14,13 @@ xbt_edge_t new_xbt_graph_edge (xbt_graph_t graph, xbt_node_t s, xbt_node_t d, xb
 /***********
  * Classes *
  ***********/
-class As;
+struct As;
 typedef As *AsPtr;
 
 class RoutingModelDescription;
 typedef RoutingModelDescription *RoutingModelDescriptionPtr;
 
-class RoutingEdge;
+struct RoutingEdge;
 typedef RoutingEdge *RoutingEdgePtr;
 
 class Onelink;
@@ -37,7 +37,7 @@ typedef RoutingPlatf *RoutingPlatfPtr;
   void end(AsPtr as);
 };*/
 
-class As {
+struct As {
 public:
   xbt_dynar_t p_indexNetworkElm;
   xbt_dict_t p_bypassRoutes;    /* store bypass routes */
@@ -68,7 +68,7 @@ public:
   virtual void parseBypassroute(sg_platf_route_cbarg_t e_route)=0;
 };
 
-class RoutingEdge {
+struct RoutingEdge {
 public:
   AsPtr p_rcComponent;
   e_surf_network_element_type_t p_rcType;