Changeset 465 for trunk/src/zAVLTree.c


Ignore:
Timestamp:
Mar 8, 2015, 6:02:28 PM (10 years ago)
Author:
katerina
Message:

Fix for ticket #364 (gcc 4.9 compiler bugs).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/zAVLTree.c

    r458 r465  
    3939  return (zAVLKey) arg;
    4040}
     41static char * dummy_zfree_string;
    4142static void zfree_string (void * inptr)
    4243{
    4344  char * str = (char *) inptr;
     45
     46  /* Take the address to circumvent gcc 4.9 optimizer bug */
     47  dummy_zfree_string = (char *) &inptr;
     48
    4449  str[0] = '\0';
    45   free (str);
     50  free (inptr);
    4651  return;
    4752}
Note: See TracChangeset for help on using the changeset viewer.