author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 16 Mar 2011 07:00:49 +0000 (02:00 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Mar 2011 19:44:59 +0000 (12:44 -0700) | ||
commit | c6c8d0b797e33ce1f22d50b46d9c6eba91ed2cbc | |
tree | 1130feebbf16b3bb00360fa0935af720c6460344 | tree | snapshot |
parent | c9b6782a08a728908bac8dc51def3607b3daa2a9 | commit | diff |
compat: make gcc bswap an inline function
Without this change, gcc -pedantic warns:
cache.h: In function 'ce_to_dtype':
cache.h:270:21: warning: ISO C forbids braced-groups within expressions [-pedantic]
An inline function is more readable anyway.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Without this change, gcc -pedantic warns:
cache.h: In function 'ce_to_dtype':
cache.h:270:21: warning: ISO C forbids braced-groups within expressions [-pedantic]
An inline function is more readable anyway.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h | diff | blob | history |