This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Enforce non old-style definition in libiberty


Hi,

  This is a followup to the series of patches that converted libiberty
to use ISO C prototype style.  This patch adds -Wold-style-definition
to guard against possible regressions in that department.  

OK to install?

-- Gaby

2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>

	* configure.ac (ac_libiberty_warn_cflags): Add
	-Wold-style-definition. 
	* configure: Regenerate.

Index: configure
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/configure,v
retrieving revision 1.90
diff -p -r1.90 configure
*** configure	29 Mar 2005 02:08:39 -0000	1.90
--- configure	1 Apr 2005 03:11:52 -0000
*************** ac_compiler_gnu=$ac_cv_c_compiler_gnu
*** 2930,2936 ****
  ac_c_preproc_warn_flag=yes
  
  if test x$GCC = xyes; then
!   ac_libiberty_warn_cflags='-W -Wall -pedantic'
  fi
  
  
--- 2930,2936 ----
  ac_c_preproc_warn_flag=yes
  
  if test x$GCC = xyes; then
!   ac_libiberty_warn_cflags='-W -Wall -Wold-style-definition -pedantic'
  fi
  
  
*************** if test "x" = "y"; then
*** 4888,4893 ****
--- 4888,4895 ----
  
  
  
+ 
+ 
  for ac_func in asprintf atexit basename bcmp bcopy bsearch bzero calloc clock \
    getcwd getpagesize gettimeofday index insque mkstemps memchr memcmp memcpy \
    memmove mempcpy memset putenv random rename rindex sigsetmask \
Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libiberty/configure.ac,v
retrieving revision 1.18
diff -p -r1.18 configure.ac
*** configure.ac	29 Mar 2005 02:08:42 -0000	1.18
--- configure.ac	1 Apr 2005 03:11:52 -0000
*************** AC_PROG_CC
*** 114,120 ****
  AC_PROG_CPP_WERROR
  
  if test x$GCC = xyes; then
!   ac_libiberty_warn_cflags='-W -Wall -pedantic'
  fi
  AC_SUBST(ac_libiberty_warn_cflags)
  
--- 114,120 ----
  AC_PROG_CPP_WERROR
  
  if test x$GCC = xyes; then
!   ac_libiberty_warn_cflags='-W -Wall -Wold-style-definition -pedantic'
  fi
  AC_SUBST(ac_libiberty_warn_cflags)
  


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]