From a751b5cc96c87be3b794a9e24c2beb7a8740c645 Mon Sep 17 00:00:00 2001 From: Brandon Casey Date: Tue, 6 Apr 2010 10:11:44 -0500 Subject: [PATCH] notes.h: declare bit field as unsigned to silence compiler complaints 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 Signed-off-by: Junio C Hamano --- notes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes.h b/notes.h index ee65bd1a2..9f59277c5 100644 --- 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; }; -- 2.26.2