1998-10-06 Jason Molenda (jsm@bugshack.cygnus.com)

Eliminate a few warnings from the compiler.
        * breakpoint.h: Add prototype.
        * breakpoint.c (do_enable_breakpoint): cast mem_cnt, i to (void).
        * configure.in: Check if strdup declaration is necessary.
        * configure: Regenerated.
        * defs.h: Add prototypes.
        * gdb_string.h: Only define strdup if necessary.
        * gdbthread.h: Add prototypes.
        * printcmd.c: Add prototyptes.
        (disassemble_command): Remove unused variable 'section'.
        * symtab.c: Add prototypes.
        * symtab.h: Include gnu-regex.h, add prototype.
        * thread.c: Add prototype.
This commit is contained in:
Jason Molenda
1998-10-06 22:24:40 +00:00
parent 1a113a4cdc
commit 87feff9dab
6 changed files with 348 additions and 278 deletions

View File

@@ -1,5 +1,5 @@
dnl Autoconf configure script for GDB, the GNU debugger.
dnl Copyright 1995, 1996 Free Software Foundation, Inc.
dnl Copyright 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
dnl
dnl This file is part of GDB.
dnl
@@ -82,6 +82,12 @@ AC_CHECK_FUNCS(setpgid sbrk select poll sigaction isascii bzero bcopy \
memcpy btowc)
AC_FUNC_ALLOCA
BFD_NEED_DECLARATION(malloc)
BFD_NEED_DECLARATION(realloc)
BFD_NEED_DECLARATION(free)
BFD_NEED_DECLARATION(strerror)
BFD_NEED_DECLARATION(strdup)
# If we are configured native on GNU/Linux, work around problems with sys/procfs.h
if test "${target}" = "${host}"; then
case "${host}" in
@@ -203,12 +209,6 @@ AC_MSG_RESULT($gdb_cv_scanf_has_long_double)
AC_FUNC_MMAP
BFD_NEED_DECLARATION(malloc)
BFD_NEED_DECLARATION(realloc)
BFD_NEED_DECLARATION(free)
BFD_NEED_DECLARATION(strerror)
dnl See if thread_db library is around for Solaris thread debugging. Note that
dnl we must explicitly test for version 1 of the library because version 0
dnl (present on Solaris 2.4 or earlier) doesn't have the same API.