summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ca74c45)
raw | patch | inline | side by side (parent: ca74c45)
author | Shawn O. Pearce <spearce@spearce.org> | |
Sun, 18 Nov 2007 09:31:37 +0000 (04:31 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 18 Nov 2007 10:23:25 +0000 (02:23 -0800) |
cache.h:503: warning: type of bit-field 'force' is a GCC extension
cache.h:504: warning: type of bit-field 'merge' is a GCC extension
cache.h:505: warning: type of bit-field 'nonfastforward' is a GCC extension
cache.h:506: warning: type of bit-field 'deletion' is a GCC extension
So we change it to an 'unsigned int' which is not a GCC extension.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h:504: warning: type of bit-field 'merge' is a GCC extension
cache.h:505: warning: type of bit-field 'nonfastforward' is a GCC extension
cache.h:506: warning: type of bit-field 'deletion' is a GCC extension
So we change it to an 'unsigned int' which is not a GCC extension.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | patch | blob | history |
index 81e8c88e46e4c674aaa346bb7d1ea9931428bad5..6ccb76422961d900094792f418d6309ffd9bc4e8 100644 (file)
--- a/cache.h
+++ b/cache.h
struct ref *next;
unsigned char old_sha1[20];
unsigned char new_sha1[20];
- unsigned char force : 1;
- unsigned char merge : 1;
- unsigned char nonfastforward : 1;
- unsigned char deletion : 1;
+ unsigned int force:1,
+ merge:1,
+ nonfastforward:1,
+ deletion:1;
enum {
REF_STATUS_NONE = 0,
REF_STATUS_OK,