More unsigned char cleanup and a possible workaround for:
authorMonty <xiphmont@xiph.org>
Fri, 7 Jul 2000 01:52:24 +0000 (01:52 +0000)
committerMonty <xiphmont@xiph.org>
Fri, 7 Jul 2000 01:52:24 +0000 (01:52 +0000)
"psytune.c", line 297: warning(1140): a value of type "signed char *" cannot
          be used to initialize an entity of type "char *"

because the IRIX mipspro compiler is on crack

Monty

svn path=/trunk/vorbis/; revision=518

configure.in
include/vorbis/codec.h

index 462e69c..4280ff6 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.16 2000/07/07 00:48:19 xiphmont Exp $
+# $Id: configure.in,v 1.17 2000/07/07 01:52:24 xiphmont Exp $
 
 AC_INIT(lib/mdct.c)
 #AC_CONFIG_HEADER(config.h)
@@ -41,13 +41,13 @@ dnl Set some target options
 if test -z "$GCC"; then
        case $host in 
        *-*-irix*)
-               DEBUG="-g" 
-               OPT="-O2 -w"
-               PROFILE="-p -g3 -O2" ;;
+               DEBUG="-g -signed
+               OPT="-O2 -w -signed"
+               PROFILE="-p -g3 -O2 -signed" ;;
        sparc-sun-solaris*)
                DEBUG="-v -g"
-               OPT="-xO4 -fast -w -fsingle -fsimple -native -xcg92"
-               PROFILE="-v -xpg -g -xO4 -fast -fsingle -native -fsimple -xcg92 -Dsuncc" ;;
+               OPT="-xO4 -fast -w -fsimple -native -xcg92"
+               PROFILE="-v -xpg -g -xO4 -fast -native -fsimple -xcg92 -Dsuncc" ;;
        *)
                DEBUG="-g"
                OPT="-O"
index 4313242..8de254f 100644 (file)
@@ -12,7 +12,7 @@
  ********************************************************************
 
  function: libvorbis codec headers
- last mod: $Id: codec.h,v 1.19 2000/06/18 12:33:47 xiphmont Exp $
+ last mod: $Id: codec.h,v 1.20 2000/07/07 01:52:24 xiphmont Exp $
 
  ********************************************************************/
 
@@ -281,9 +281,9 @@ typedef struct vorbis_dsp_state{
      application does not need to worry about freeing some packets'
      memory and not others'; packet storage is always tracked.
      Cleared next call to a _dsp_ function */
-  char *header;
-  char *header1;
-  char *header2;
+  unsigned char *header;
+  unsigned char *header1;
+  unsigned char *header2;
 
 } vorbis_dsp_state;