# HG changeset patch # User gpoirier # Date 1106390878 0 # Node ID 408dfb63ff95598d35c5b58fd7a67d9fbeb27037 # Parent bfdec335c4d46969f6cbbaa479bacc1ebb712f48 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. diff -r bfdec335c4d4 -r 408dfb63ff95 libaf/af.c --- 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);