Skip to content

Commit a751b5c

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 537f6c7 commit a751b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ void format_note(struct notes_tree *t, const unsigned char *object_sha1,
212212
struct string_list;
213213

214214
struct display_notes_opt {
215-
int suppress_default_notes:1;
215+
unsigned int suppress_default_notes:1;
216216
struct string_list *extra_notes_refs;
217217
};
218218

0 commit comments

Comments
 (0)