From 16cadf399acef54f873030ccd31a964a2150e963 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 23 May 2000 11:28:14 +0000 Subject: [PATCH] Add -Wuninitialized. --- gdb/ChangeLog | 6 ++++++ gdb/configure | 4 ++-- gdb/configure.in | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f14b47fd3e..d18c7537c3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,8 +1,14 @@ +Tue May 23 20:47:50 2000 Andrew Cagney + + * configure.in (build_warnings): Add -Wuninitialized. + * configure: Regenerate. + Tue May 23 17:44:18 2000 Andrew Cagney From Mon May 8 14:49:51 2000 Andrew Cagney (gdb 5.0): From Michael Paddon : * configure.in (AC_CHECK_HEADERS): Check for . + * configure: Re-generate. * proc-api.c: Only include when available. (ioctl_table): Check that PIOCGETPR and PIOCGETU are defined. diff --git a/gdb/configure b/gdb/configure index abbc0c3dcf..e1eeaa069e 100755 --- a/gdb/configure +++ b/gdb/configure @@ -3293,7 +3293,7 @@ for ac_hdr in ctype.h curses.h endian.h link.h thread_db.h proc_service.h \ string.h sys/procfs.h sys/ptrace.h sys/reg.h stdint.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ wchar.h wctype.h asm/debugreg.h sys/debugreg.h sys/select.h \ - time.h sys/ioctl.h + time.h sys/ioctl.h sys/user.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 @@ -5496,7 +5496,7 @@ fi # Don't add -Wall or -Wunused, they include -Wunused-parameter which # causes noise. build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ --Wformat -Wparentheses -Wpointer-arith" +-Wformat -Wparentheses -Wpointer-arith -Wuninitialized" # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual diff --git a/gdb/configure.in b/gdb/configure.in index c58eb35504..c884e97217 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -485,7 +485,7 @@ fi # Don't add -Wall or -Wunused, they include -Wunused-parameter which # causes noise. build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \ --Wformat -Wparentheses -Wpointer-arith" +-Wformat -Wparentheses -Wpointer-arith -Wuninitialized" # Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs # -Wunused-function -Wunused-label -Wunused-variable -Wunused-value # -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual -- 2.34.1