andrewrk / libsoundio

C library for cross-platform real-time audio input and output
http://libsound.io/
MIT License
1.93k stars 228 forks source link

CMake: -Werrors breaks assert/NDBEUG #277

Open krumelmonster opened 1 year ago

krumelmonster commented 1 year ago

I wanted to work around https://github.com/andrewrk/libsoundio/issues/276 by simply disabling assertions via the NDEBUG Macro. However this leads to unused variables for variables only introduced for asserting on them (e.g. here and here). CMakeLists.txt enables -Werror which it probably shouldn't and therefore libsoundio won't compile with C asserts disabled.