Skip to content

Commit

Permalink
notes.h: declare bit field as unsigned to silence compiler complaints
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brandon Casey authored and Junio C Hamano committed Apr 7, 2010
1 parent 537f6c7 commit a751b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit a751b5c

Please sign in to comment.