Working with GNU/GCC
With this code :
static uint8_t write_idx=0;
write_idx = write_idx==127 ? 0 : ++write_idx;
I get this warning :
warning: operation on 'write_idx' may be undefined [-Wsequence-point]
Do you know what generates this warning ?
EDIT :
write_idx = write_idx==127 ? 0 : write_idx+1;
Same behaviour but no warning thanks @pmg