Added warnings for unused results on functions calling realloc()

Patch for issue #11