m4/a52.m4: fix compilation with -Wall -Werror

Original commit message from CVS:
* m4/a52.m4 : fix compilation with -Wall -Werror
* m4/libfame.m4 : idem
* m4/libmikmod.m4 : idem
This commit is contained in:
Stéphane Loeuillet 2004-05-18 00:13:45 +00:00
parent 826fc0784c
commit ce0bf2d899
4 changed files with 17 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2004-05-18 Stephane Loeuillet <stephane.loeuillet@tiscali.fr>
* m4/a52.m4 : fix compilation with -Wall -Werror
* m4/libfame.m4 : idem
* m4/libmikmod.m4 : idem
2004-05-17 Benjamin Otte <otte@gnome.org> 2004-05-17 Benjamin Otte <otte@gnome.org>
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_comment): * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_comment):

View file

@ -79,12 +79,14 @@ int
main () main ()
{ {
a52_state_t *state; a52_state_t *state;
state = a52_init (0);
a52_free (state);
return 0; return 0;
} }
],, HAVE_A52DEC=no, [echo $ac_n "cross compiling; assumed OK... $ac_c"]) ],, HAVE_A52DEC=no, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
if test HAVE_A52DEC = "no"; then if test HAVE_A52DEC = "no"; then
echo "*** Your a52dec is borked somehow. Please update to 0.7.3." echo "*** Your a52dec is borked somehow. Please update to 0.7.4."
else else
AC_TRY_RUN([ AC_TRY_RUN([
#include <inttypes.h> #include <inttypes.h>
@ -93,13 +95,15 @@ main ()
int int
main () main ()
{ {
int i = sizeof (a52_state_t); a52_state_t *state;
return 0; int i = sizeof (state);
if ( i )
return 0;
} }
], HAVE_A52DEC=no,, [echo $ac_n "cross compiling; assumed OK... $ac_c"]) ], HAVE_A52DEC=no,, [echo $ac_n "cross compiling; assumed OK... $ac_c"])
if test HAVE_A52DEC = "no"; then if test HAVE_A52DEC = "no"; then
echo "*** Your a52dec is too old. Please update to 0.7.3." echo "*** Your a52dec is too old. Please update to 0.7.4."
fi fi
fi fi
CFLAGS="$ac_save_CFLAGS" CFLAGS="$ac_save_CFLAGS"

View file

@ -56,6 +56,7 @@ dnl
#include <fame.h> #include <fame.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
int int
main () main ()

View file

@ -72,6 +72,7 @@ dnl
#include <mikmod.h> #include <mikmod.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h>
char* my_strdup (char *str) char* my_strdup (char *str)
{ {
@ -125,7 +126,7 @@ int main()
(libmikmod_minor_version != LIBMIKMOD_VERSION_MINOR) || (libmikmod_minor_version != LIBMIKMOD_VERSION_MINOR) ||
(libmikmod_micro_version != LIBMIKMOD_REVISION)) (libmikmod_micro_version != LIBMIKMOD_REVISION))
{ {
printf("*** libmikmod header files (version %d.%d.%d) do not match\n", printf("*** libmikmod header files (version %ld.%ld.%ld) do not match\n",
LIBMIKMOD_VERSION_MAJOR, LIBMIKMOD_VERSION_MINOR, LIBMIKMOD_REVISION); LIBMIKMOD_VERSION_MAJOR, LIBMIKMOD_VERSION_MINOR, LIBMIKMOD_REVISION);
printf("*** library (version %d.%d.%d)\n", printf("*** library (version %d.%d.%d)\n",
libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version); libmikmod_major_version, libmikmod_minor_version, libmikmod_micro_version);