From a95babbf381faac591ef74244aba6b399448c653 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 2 Mar 2012 12:56:50 +0000 Subject: gdb/ Fix -Wmissing-prototypes build. * charset.c (phony_iconv_open): Make static. (phony_iconv_close, phony_iconv): Likewise. * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype. * i386-windows-nat.c (_initialize_i386_windows_nat): New prototype. * mingw-hdep.c (_initialize_mingw_hdep): New prototype. * ser-mingw.c (create_select_thread): Make static. * windows-termcap.c (tgetent): New prototype. (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise. --- gdb/charset.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/charset.c') diff --git a/gdb/charset.c b/gdb/charset.c index 16dab6b..4a209a5 100644 --- a/gdb/charset.c +++ b/gdb/charset.c @@ -108,7 +108,7 @@ #define EILSEQ ENOENT #endif -iconv_t +static iconv_t phony_iconv_open (const char *to, const char *from) { /* We allow conversions from UTF-32BE, wchar_t, and the host charset. @@ -124,13 +124,13 @@ phony_iconv_open (const char *to, const char *from) return !strcmp (from, "UTF-32BE"); } -int +static int phony_iconv_close (iconv_t arg) { return 0; } -size_t +static size_t phony_iconv (iconv_t utf_flag, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft) { -- cgit v1.1