[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] [PATCH 14/15] build: don't turn off -Wmissing-prototypes
From: |
Jim Meyering |
Subject: |
[bug-patch] [PATCH 14/15] build: don't turn off -Wmissing-prototypes |
Date: |
Sat, 26 Mar 2011 14:32:09 +0100 |
From: Jim Meyering <address@hidden>
* configure.ac (WERROR_CFLAGS): Don't turn off -Wmissing-prototypes.
* src/pch.c (skip_hex_digits): Declare static.
* src/bestmatch.h (bestmatch): Likewise.
---
configure.ac | 1 -
src/bestmatch.h | 2 +-
src/pch.c | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index eac3bd4..73acd29 100644
--- a/configure.ac
+++ b/configure.ac
@@ -86,7 +86,6 @@ if test "$gl_gcc_warnings" = yes; then
nw="$nw -Wstack-protector" # not worth working around
# things to fix soon:
nw="$nw -Wshadow"
- nw="$nw -Wmissing-prototypes"
nw="$nw -Wmissing-format-attribute"
nw="$nw -Wmissing-declarations"
nw="$nw -Wstrict-overflow"
diff --git a/src/bestmatch.h b/src/bestmatch.h
index d3bba7e..958b1ca 100644
--- a/src/bestmatch.h
+++ b/src/bestmatch.h
@@ -51,7 +51,7 @@
* search.
*/
-OFFSET
+static OFFSET
bestmatch(OFFSET xoff, OFFSET xlim, OFFSET yoff, OFFSET ylim,
OFFSET min, OFFSET max, OFFSET *py)
{
diff --git a/src/pch.c b/src/pch.c
index b25424f..d07c1aa 100644
--- a/src/pch.c
+++ b/src/pch.c
@@ -366,7 +366,7 @@ sha1_says_nonexistent(char const *sha1, char const *end)
return s == end;
}
-char const *
+static char const *
skip_hex_digits (char const *str)
{
char const *s;
--
1.7.1.354.ge64bd
- [bug-patch] [PATCH 00/15] *** SUBJECT HERE ***, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 03/15] maint: add some m4 quoting, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 08/15] tests: temporarily disable failing syntax-check rules, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 01/15] maint: use gnulib's maintainer-makefile module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 02/15] maint: arrange for the sc_require_config_h_first test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 04/15] maint: remove trailing blanks, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 09/15] build: avoid three gcc warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 15/15] build: don't turn off -Wmissing-declarations, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 13/15] maint: remove now-unneeded macro definitions, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 14/15] build: don't turn off -Wmissing-prototypes,
Jim Meyering <=
- [bug-patch] [PATCH 05/15] maint: allow the sc_prohibit_empty_lines_at_EOF test to pass, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 07/15] build: accept new configure-time option --enable-gcc-warnings, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 06/15] maint: avoid non-portable use of test -a, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 11/15] maint: update bootstrap and gnulib submodule, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 12/15] maint: use gnulib's progname module, Jim Meyering, 2011/03/26
- [bug-patch] [PATCH 10/15] maint: update copyright date year ranges to include 2011, Jim Meyering, 2011/03/26
- Re: [bug-patch] [PATCH 00/15] *** SUBJECT HERE ***, Andreas Gruenbacher, 2011/03/26