Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure that the code still compiles with the freaking paranoid gcc warning options...
[simgrid.git] / src / gras / DataDesc / ddt_create.c
index cffe32376a1c5b43f5de66bf01d8db29a7b44745..6caa963b6f2016f0f7ebd46673cef6a6f9963880 100644 (file)
@@ -53,7 +53,7 @@ static gras_datadesc_type_t gras_ddt_new(const char *name) {
  */
 gras_datadesc_type_t gras_datadesc_by_name(const char *name) {
   xbt_ex_t e;
  */
 gras_datadesc_type_t gras_datadesc_by_name(const char *name) {
   xbt_ex_t e;
-  gras_datadesc_type_t res;
+  gras_datadesc_type_t res = NULL;
   TRY {
     res = (gras_datadesc_type_t)xbt_set_get_by_name(gras_datadesc_set_local,name);
   } CATCH(e) {
   TRY {
     res = (gras_datadesc_type_t)xbt_set_get_by_name(gras_datadesc_set_local,name);
   } CATCH(e) {
@@ -70,7 +70,7 @@ gras_datadesc_type_t gras_datadesc_by_name(const char *name) {
  */
 gras_datadesc_type_t gras_datadesc_by_id(long int code) {
   xbt_ex_t e;
  */
 gras_datadesc_type_t gras_datadesc_by_id(long int code) {
   xbt_ex_t e;
-  gras_datadesc_type_t res;
+  gras_datadesc_type_t res=NULL;
   TRY {
     res = (gras_datadesc_type_t)xbt_set_get_by_id(gras_datadesc_set_local,code);
   } CATCH(e) {
   TRY {
     res = (gras_datadesc_type_t)xbt_set_get_by_id(gras_datadesc_set_local,code);
   } CATCH(e) {