luxonis / XLink

A cross-platform library for communicating with devices over various physical links.
Apache License 2.0
12 stars 18 forks source link

fix warning: multiple unsequenced modifications in circ buf macros #40

Closed diablodale closed 2 years ago

diablodale commented 2 years ago

Fix warning: multiple unsequenced modifications to... circular buffer macros.

I could not repro this warning on Win vs2019, U20.04, U21.10, clang, gcc, debug ,release, static, or dynamic builds. Reading the C-spec, I could imagine how a compile might be unclear on the sequence. So I've updated the first macro with hope @szabi-luxonis will no longer have the warning when they compile it on their test harness.

Continues to compile clean and run well on my test machines and all test+examples pass.

As discussed with @szabi-luxonis https://github.com/luxonis/XLink/pull/29/files/5d2d5023aff5caed817a47fae36e761347af8018#r789119871