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/windows-termcap.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/windows-termcap.c') diff --git a/gdb/windows-termcap.c b/gdb/windows-termcap.c index a70b6e8..7f946ea 100644 --- a/gdb/windows-termcap.c +++ b/gdb/windows-termcap.c @@ -21,6 +21,14 @@ #include +/* -Wmissing-prototypes */ +extern int tgetent (char *buffer, char *termtype); +extern int tgetnum (char *name); +extern int tgetflag (char *name); +extern char* tgetstr (char *name, char **area); +extern int tputs (char *string, int nlines, int (*outfun) ()); +extern char *tgoto (const char *cap, int col, int row); + /* Each of the files below is a minimal implementation of the standard termcap function with the same name, suitable for use in a Windows console window. */ -- cgit v1.1