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

gianrico gianrico at gianrico.com
Sun Aug 30 06:20:10 EDT 2009


 

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

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.splintered.net/pipermail/flow-tools/attachments/20090830/dbeb5bbc/attachment.htm


More information about the Flow-tools mailing list