libgit2/src
Ramsay Jones c1b62b2ede 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>
2010-06-02 11:18:56 +02:00
..
block-sha1 Add support to enable the library to use OpenSSL SHA1 functions 2010-05-04 21:36:12 +02:00
git Fix a doxygen warning 2010-06-02 11:18:56 +02:00
ppc Add support to enable the library to use OpenSSL SHA1 functions 2010-05-04 21:36:12 +02:00
unix win32: Add routines to abstract memory-mapped file functions 2009-03-20 14:39:02 -07:00
win32 win32: Add a 'git__' prefix to the directory reading routines 2010-01-20 20:16:34 +00:00
bswap.h MSVC: Fix a syntax error caused by an inline function definition 2010-04-28 20:55:04 +01:00
cc-compat.h msvc: Fix some "unreferenced formal parameter" warnings 2010-01-20 20:22:10 +00:00
commit.c Fix sparse warnings: "Using plain integer as NULL pointer" 2010-06-02 11:18:55 +02:00
commit.h Added new error codes. Improved error handling. 2010-06-02 10:32:07 +02:00
common.h Merge remote branch 'ramsay/dev' 2010-04-23 09:59:22 +02:00
delta-apply.c msvc: Fix some -W4 warnings 2010-01-20 20:20:47 +00:00
delta-apply.h Add the binary delta apply algorithm for pack style deltas 2009-01-03 04:21:30 -08:00
dir.h win32: Add a 'git__' prefix to the directory reading routines 2010-01-20 20:16:34 +00:00
errors.c Fix some "signed v unsigned comparison" warnings with -Wextra 2010-01-20 20:18:36 +00:00
errors.h Cleanup our header inclusion order to ensure pthread.h is early 2008-12-31 13:16:31 -08:00
fileops.c Add some more (macro) file operation wrappers 2010-04-30 09:47:58 +02:00
fileops.h Add some more (macro) file operation wrappers 2010-04-30 09:47:58 +02:00
hash.c Add support to enable the library to use OpenSSL SHA1 functions 2010-05-04 21:36:12 +02:00
hash.h Add some routines for SHA1 hash computation 2008-12-30 07:48:10 -08:00
map.h win32: Add routines to abstract memory-mapped file functions 2009-03-20 14:39:02 -07:00
mingw-compat.h win32: Add separate MinGW and MSVC compatability header files 2010-02-28 20:10:56 +00:00
msvc-compat.h win32: Add separate MinGW and MSVC compatability header files 2010-02-28 20:10:56 +00:00
odb.c Add functions to open a '*.pack' file and perform some basic validation 2010-04-30 09:48:07 +02:00
odb.h Add functions to open a '*.pack' file and perform some basic validation 2010-04-30 09:48:07 +02:00
oid.c Fix some "signed v unsigned comparison" warnings with -Wextra 2010-01-20 20:18:36 +00:00
revobject.c Fix a "dereference of type-punned pointer" compiler warning 2010-06-02 11:18:56 +02:00
revobject.h Fixed brace placement and converted spaces to tabs. 2010-06-02 10:32:07 +02:00
revwalk.c Improved error handling on auxilirary functions. 2010-06-02 10:32:07 +02:00
revwalk.h msvc: Fix an "conversion, loss of data" compiler warning 2010-06-02 11:18:55 +02:00
sha1.h Add support to enable the library to use OpenSSL SHA1 functions 2010-05-04 21:36:12 +02:00
thread-utils.c Wrap malloc and friends and report out of memory as GIT_ENOMEM 2008-12-30 23:28:30 -08:00
thread-utils.h thread-utils.h: Avoid using a non-standard C construct 2009-06-05 12:13:48 +02:00
util.c Fix some "signed v unsigned comparison" warnings with -Wextra 2010-01-20 20:18:36 +00:00
util.h Fix some coding style issues 2010-02-28 20:09:45 +00:00