From 18e0f32b292316a4db3bb0bde1570a73ee60b0bd Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 30 Mar 2014 07:48:03 +0000 Subject: Silence compiler warnings on OS X 10.9. [originally from svn r10166] --- bk_info.c | 2 +- bk_text.c | 2 +- deflate.c | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bk_info.c b/bk_info.c index 1c6e033..a9a67d4 100644 --- a/bk_info.c +++ b/bk_info.c @@ -315,7 +315,7 @@ void info_backend(paragraph *sourceform, keywordlist *keywords, int nesting, nestindent; int indentb, indenta; int filepos; - int has_index; + int has_index = FALSE; info_data intro_text = EMPTY_INFO_DATA; node *topnode, *currnode; word bullet; diff --git a/bk_text.c b/bk_text.c index 2a121e7..4ffba55 100644 --- a/bk_text.c +++ b/bk_text.c @@ -686,7 +686,7 @@ static void text_heading(textfile *tf, word *tprefix, word *nprefix, if (margin < 0) margin = 0; firstlinewidth = indent + width - margin - length; wrapwidth = width; - } else if (align.align == LEFT || align.align == CENTRE) { + } else /* if (align.align == LEFT || align.align == CENTRE) */ { margin = 0; firstlinewidth = indent + width - length; wrapwidth = indent + width; diff --git a/deflate.c b/deflate.c index 6bbceae..5eb1faa 100644 --- a/deflate.c +++ b/deflate.c @@ -1203,7 +1203,8 @@ static void outblock(deflate_compress_ctx *out, */ for (i = 0; i < 19; i++) codelen[i] = len3[lenlenmap[i]]; - for (hclen = 19; hclen > 4 && codelen[hclen-1] == 0; hclen--); + for (hclen = 19; hclen > 4 && codelen[hclen-1] == 0; hclen--) + /* empty loop body */; /* * Now work out the exact size of both the dynamic and the -- cgit v1.1