Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
notes.h: declare bit field as unsigned to silence compiler complaints
author
Brandon Casey
<drafnel@gmail.com>
Tue, 6 Apr 2010 15:11:44 +0000
(10:11 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 7 Apr 2010 04:55:50 +0000
(21:55 -0700)
The IRIX MIPSPro compiler complains like this:
cc-1107 c99: WARNING File = notes.h, Line = 215
A signed bit field has a length of 1 bit.
int suppress_default_notes:1;
^
'unsigned' is what was intended, so lets make it so.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.h
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
537f6c7
)
diff --git
a/notes.h
b/notes.h
index ee65bd1a2430d4af53f03fd2cc9faa916863408c..9f59277c516f7ac78bcc66f91a7d7013b2a77f65 100644
(file)
--- a/
notes.h
+++ b/
notes.h
@@
-212,7
+212,7
@@
void format_note(struct notes_tree *t, const unsigned char *object_sha1,
struct string_list;
struct display_notes_opt {
- int suppress_default_notes:1;
+
unsigned
int suppress_default_notes:1;
struct string_list *extra_notes_refs;
};