Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

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

Open
salocinx opened this issue Mar 11, 2020 · 0 comments
Open

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

salocinx opened this issue Mar 11, 2020 · 0 comments

Comments

@salocinx
Copy link

salocinx commented Mar 11, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant