mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-21 08:40:37 +01:00
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:
parent
8dfe8c68eb
commit
3b0f068eaf
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue