brei: put a warning in that disabling NDEBUG is not a good idea

We really rely on assert all over the place, removing that is likely
going to result in interesting outcomes when unexpected failures happen.

Putting this into brei because it's a header used by both libei/libeis.

Assisted-by: Claude:claude-opus-4-6
Part-of: <https://gitlab.freedesktop.org/libinput/libei/-/merge_requests/388>
This commit is contained in:
Peter Hutterer 2026-05-11 12:18:10 +10:00 committed by Marge Bot
parent 93ba922062
commit fc5129968d

View file

@ -26,6 +26,10 @@
#include "config.h"
#ifdef NDEBUG
#warning "This project relies on assert(). #defining NDEBUG is not recommended"
#endif
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>