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

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

@salocinx

Description

@salocinx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions