Вопрос

I am currently working on a embedded C project and I "inherited" some old code containing statements such as:

rxStruct = rxStruct;

where rxStruct is a variable.

What could be the use of such statements?

Это было полезно?

Решение

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

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top