vec icon indicating copy to clipboard operation
vec copied to clipboard

Error: right-hand operand of comma expression has no effect

Open salocinx opened this issue 5 years ago • 0 comments

Hi. Thanks for sharing your project!

I get the following error while compiling with the xtensa-esp32-elf tool chain for the Espressif ESP32 platform:

#define vec_push(v, val)\
  ( vec_expand_(vec_unpack_(v)) ? -1 :\
    ((v)->data[(v)->length++] = (val), 0), 0 )

Error: right-hand operand of comma expression has no effect [-Werror=unused-value]

I can't start my program anymore. Any idea how to solve this issue?


I started a discussion about the issue described above on stackoverflow.com. I received great input, please take a look here.

salocinx avatar Mar 11 '20 19:03 salocinx