Warn if NDEBUG is defined

We rely on assert() too much for safety checks, let's not let the user disable
it without warning

Fixes #262

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2019-05-28 14:10:54 +10:00
parent 8dfe8c68eb
commit 3b0f068eaf

View file

@ -27,6 +27,10 @@
#include "config.h"
#ifdef NDEBUG
#warning "libinput relies on assert(). #defining NDEBUG is not recommended"
#endif
#include <assert.h>
#include <ctype.h>
#include <errno.h>