shithub: libsamplerate

Download patch

ref: 85c371df3ea73f75612b876907140d1fd3d845f7
parent: 1ea32ae278e2176328e17233b29925021de9a6cf
author: Erik de Castro Lopo <erikd@mingus>
date: Tue Jul 25 23:34:30 EDT 2006

configure.ac : Add -Wpointer-arith to CFLAGS.

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2006-07-26  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
+
+    * examples/audio_out.c
+    Fix bug arising from last change.
+
+    * configure.ac
+    Add -Wpointer-arith to CFLAGS.
+
 2006-07-12  Erik de Castro Lopo  <erikd AT mega-nerd DOT com>
 
     * examples/audio_out.c
--- a/configure.ac
+++ b/configure.ac
@@ -92,6 +92,16 @@
 AC_CHECK_SIZEOF(double,8)
 
 #====================================================================================
+# Determine endian-ness of target processor.
+
+AC_C_FIND_ENDIAN
+
+AC_DEFINE_UNQUOTED(CPU_IS_BIG_ENDIAN, ${ac_cv_c_big_endian},
+        [Target processor is big endian.])
+AC_DEFINE_UNQUOTED(CPU_IS_LITTLE_ENDIAN, ${ac_cv_c_little_endian},
+        [Target processor is little endian.])
+
+#====================================================================================
 # Check for functions.
 
 AC_CHECK_FUNCS(malloc calloc free memcpy memmove)
@@ -165,8 +175,8 @@
 # GCC stuff.
 
 if test $ac_cv_c_compiler_gnu = yes ; then
-	CFLAGS="$CFLAGS -W -Wstrict-prototypes -Wmissing-prototypes -Wall -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow"
-	# -Wpointer-arith -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
+	CFLAGS="$CFLAGS -W -Wstrict-prototypes -Wmissing-prototypes -Wall -pedantic -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wpointer-arith"
+	# -Wundef -Wbad-function-cast -Wmissing-declarations -Wconversion -Winline"
 	if test "$ac_arg_gcc_opt" = "N" ; then
 		temp_CFLAGS=`echo $CFLAGS | sed "s/O2/O0/"`
 		CFLAGS=$temp_CFLAGS