Changeset 5098:1c9db84ed54f

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

Fix compiler aliasing warnings

Files:
3 modified

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r5096 r5098  
     12007-04-07 16:13 -0700  Fabian Groffen  <grobian@gentoo.org>  (779befaca281) 
     2 
     3        * hcache.c: Fix compiler warnings 
     4 
     52007-04-07 16:05 -0700  Jukka Salmi  <jukka@salmi.ch>  (ef35baf2a2d0) 
     6 
     7        * configure.ac: Fix BDB autoconf buglet introduced in 
     8        [3638701db407] 
     9 
    1102007-04-07 15:21 -0700  Michael Elkins  <me@mutt.org>  (70e637e40943) 
    211 
  • 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; 
  • muttlib.c

    r5058 r5098  
    16031603    offset = buf->dptr - buf->data; 
    16041604    buf->dsize += len < 128 ? 128 : len + 1; 
    1605     safe_realloc ((void**) &buf->data, buf->dsize); 
     1605    /* suppress compiler aliasing warning */ 
     1606    safe_realloc ((void**) (void*) &buf->data, buf->dsize); 
    16061607    buf->dptr = buf->data + offset; 
    16071608  }