• Show log

    Commit

  • Hash : c1b62b2e
    Author : Ramsay Jones
    Date : 2010-06-01T19:35:49

    Fix a "dereference of type-punned pointer" compiler warning
    
    gcc (4.4.0) issues the following warning:
    
        src/revobject.c:33: warning: dereferencing type-punned pointer \
            will break strict-aliasing rules
    
    We suppress the warning by copying the first 4 bytes from the oid
    structure into an 'unsigned int' using memcpy(). This will also
    fix any potential alignment issues on certain platforms.
    
    Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
    Signed-off-by: Andreas Ericsson <ae@op5.se>