flow-tools  

[Flow-tools] "lvalue required as left operand of assignment" error

gianrico
Sun, 30 Aug 2009 03:22:06 -0700

 

Hi,

   I'm using gcc 4.4.0 in Fedora 11 and have the same error.

 

I have this error in many places.

 

The error is in C code like this:

 

func . (void *buf.

{

.

(char *)buf +=2;

next line of code here;

.

}

 

 

The question is that I think this should  not be standard C code because the
cast conversion is temporary.

It could happen that in the "next line of code"  buf is unchanged!

 

I resolved this issue change the type of 'buf' to 'char *' instead of 'void
*'. 

But I'M NOT SURE THAT THE CODE IT WILL BE STABLE. It should be tested.

 

 

Bye

Gianrico

 

_______________________________________________
Flow-tools mailing list
flow-to...@splintered.net
http://mailman.splintered.net/mailman/listinfo/flow-tools