Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Empty structs are not allowed in C.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 18 Sep 2013 15:18:57 +0000 (17:18 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 23 Sep 2013 09:06:17 +0000 (11:06 +0200)
Use an incomplete declaration instead.

include/msg/datatypes.h

index 241d649..8ecd1ca 100644 (file)
@@ -132,9 +132,9 @@ extern int MSG_STORAGE_LEVEL;
 typedef xbt_dictelm_t msg_storage_t;
 typedef s_xbt_dictelm_t s_msg_storage_t;
 
 typedef xbt_dictelm_t msg_storage_t;
 typedef s_xbt_dictelm_t s_msg_storage_t;
 
-typedef struct msg_storage_priv {
-/* TODO PV: fill it (or not) ! */
-} s_msg_storage_priv_t, *msg_storage_priv_t;
+typedef struct msg_storage_priv /* {
+   TODO PV: fill it (or not) !
+} */ s_msg_storage_priv_t, *msg_storage_priv_t;
 
 //typedef struct simdata_storage *simdata_storage_t;
 //
 
 //typedef struct simdata_storage *simdata_storage_t;
 //