diff libaf/af.c @ 14569:408dfb63ff95

Make this file compile with gcc-4.0.0: It's syntacticly incorrect to use the "&" operand to take the address of a variable that is declared as "register" as a register has no address.
author gpoirier
date Sat, 22 Jan 2005 10:47:58 +0000
parents 95bb94a930a3
children 108423cf7b3f
line wrap: on
line diff
--- a/libaf/af.c	Sat Jan 22 00:06:59 2005 +0000
+++ b/libaf/af.c	Sat Jan 22 10:47:58 2005 +0000
@@ -521,7 +521,7 @@
 {
   int t = s->input.bps*s->input.nch;
   af_instance_t* af=s->first; 
-  register frac_t mul = {1,1};
+  frac_t mul = {1,1};
   // Iterate through all filters 
   do{
     af_frac_mul(&mul, &af->mul);
@@ -538,7 +538,7 @@
 {
   int t = s->input.bps*s->input.nch;
   af_instance_t* af=s->first; 
-  register frac_t mul = {1,1};
+  frac_t mul = {1,1};
   // Iterate through all filters 
   do{
     af_frac_mul(&mul, &af->mul);
@@ -562,7 +562,7 @@
   int in  = 0;
   int out = 0;
   af_instance_t* af=s->first; 
-  register frac_t mul = {1,1};
+  frac_t mul = {1,1};
   // Iterate through all filters and calculate total multiplication factor
   do{
     af_frac_mul(&mul, &af->mul);