Changeset 5098:1c9db84ed54f for imap

Show
Ignore:
Timestamp:
2007-04-07 16:20:14 (20 months ago)
Author:
Fabian Groffen <grobian@…>
Branch:
HEAD
Message:

Fix compiler aliasing warnings

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • imap/message.c

    r5076 r5098  
    155155        if (rc != IMAP_CMD_CONTINUE) 
    156156        { 
    157           imap_free_header_data ((void**) &h.data); 
     157          /* suppress GCC aliasing warning */ 
     158          imap_free_header_data ((void**) (void*) &h.data); 
    158159          break; 
    159160        } 
     
    163164        else if (mfhrc < 0) 
    164165        { 
    165           imap_free_header_data ((void**) &h.data); 
     166          imap_free_header_data ((void**) (void*) &h.data); 
    166167          break; 
    167168        } 
     
    190191          /* bad header in the cache, we'll have to refetch. 
    191192           * TODO: consider the possibility of a holey cache. */ 
    192           imap_free_header_data((void**) &h.data); 
     193          imap_free_header_data((void**) (void*) &h.data); 
    193194      } 
    194195      while (rc != IMAP_CMD_OK && mfhrc == -1); 
     
    198199      { 
    199200        if (h.data) 
    200           imap_free_header_data ((void**) &h.data); 
     201          imap_free_header_data ((void**) (void*) &h.data); 
    201202        fclose (fp); 
    202203        return -1; 
     
    299300    { 
    300301      if (h.data) 
    301         imap_free_header_data ((void**) &h.data); 
     302        imap_free_header_data ((void**) (void*) &h.data); 
    302303      fclose (fp); 
    303304      return -1;