Branch: Tag:

2014-11-11

2014-11-11 19:12:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Build: Fixed some warnings about freeing static memory.

280: Inside #if defined(PIKE_DEBUG)
   Pike_fatal("really_free_mapping_data(): md has non-zero refs: %d\n",    md->refs);    } +  +  if (!md->size) { +  /* Paranoia and keep gcc happy. */ +  if (md == &empty_data) { +  Pike_fatal("really_free_mapping_data(): md is empty_data!\n"); +  } +  if (md == &weak_ind_empty_data) { +  Pike_fatal("really_free_mapping_data(): md is weak_ind_empty_data!\n"); +  } +  if (md == &weak_val_empty_data) { +  Pike_fatal("really_free_mapping_data(): md is weak_val_empty_data!\n"); +  } +  if (md == &weak_both_empty_data) { +  Pike_fatal("really_free_mapping_data(): md is weak_both_empty_data!\n"); +  } +  }   #endif /* PIKE_DEBUG */       NEW_MAPPING_LOOP(md)