Self-determination in ANSI C

I am currently working on an embedded C project, and I have “inherited” some old code containing instructions, such as:

rxStruct = rxStruct; 

where rxStruct is a variable.

What could be the use of such statements?

+4
source share
1 answer

Without additional information, one use of such an operator is to prevent the warning of an unused compiler parameter if rxStruct is passed as a parameter and then not used otherwise.

+14
source

All Articles