cyanreg / cyanrip

Bule-ish CD ripper
GNU Lesser General Public License v2.1
222 stars 10 forks source link

mingw-w64 clang: cyanrip_main expected expression #68

Closed 1480c1 closed 11 months ago

1480c1 commented 11 months ago
../src/cyanrip_main.c:557:5: error: expected expression
  557 |     const int frames_before_disc_start = t->frames_before_disc_start;
      |     ^

clang is complaining about the initialization after the label. A simple fix might be to just do repeat_ripping:; but I don't know if that's preferred as it looks a bit ugly.

cyanreg commented 11 months ago

Could you experiment with it to find something it's happy with?

1480c1 commented 11 months ago

Simply using sed -i 's/repeat_ripping:/repeat_ripping:;/' src/cyanrip_main.c has worked. https://stackoverflow.com/questions/8384388/variable-declaration-after-goto-label#8384505 mentions the same

cyanreg commented 11 months ago

Thanks for reporting Fixed