mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 01:54:13 +08:00
mdbx: NDEBUG.
Change-Id: I5c8edcad6fc7a0f3f7e4842f4a92fdb685e2e132
This commit is contained in:
parent
0deb198ca2
commit
0a8e59c314
2
Makefile
2
Makefile
@ -19,7 +19,7 @@ mandir ?= $(prefix)/man
|
||||
|
||||
CC ?= gcc
|
||||
XCFLAGS ?=
|
||||
CFLAGS ?= -O2 -ggdb3 -Wall -Werror -Wno-unused-parameter
|
||||
CFLAGS ?= -O2 -ggdb3 -Wall -Werror -Wno-unused-parameter -DNDEBUG=1
|
||||
CFLAGS += -pthread $(XCFLAGS)
|
||||
|
||||
########################################################################
|
||||
|
6
reopen.h
6
reopen.h
@ -82,7 +82,7 @@
|
||||
#endif /* __must_check_result */
|
||||
|
||||
#ifndef __hot
|
||||
# if defined(__GNUC__) && !defined(__clang__)
|
||||
# if defined(NDEBUG) && (defined(__GNUC__) && !defined(__clang__))
|
||||
# define __hot __attribute__((hot, optimize("O3")))
|
||||
# else
|
||||
# define __hot
|
||||
@ -90,7 +90,7 @@
|
||||
#endif /* __hot */
|
||||
|
||||
#ifndef __cold
|
||||
# if defined(__GNUC__) && !defined(__clang__)
|
||||
# if defined(NDEBUG) && (defined(__GNUC__) && !defined(__clang__))
|
||||
# define __cold __attribute__((cold, optimize("Os")))
|
||||
# elif defined(__GNUC__)
|
||||
/* cland case, just put infrequently used functions in separate section */
|
||||
@ -101,7 +101,7 @@
|
||||
#endif /* __cold */
|
||||
|
||||
#ifndef __flatten
|
||||
# if defined(__GNUC__) || defined(__clang__)
|
||||
# if defined(NDEBUG) && (defined(__GNUC__) || defined(__clang__))
|
||||
# define __flatten __attribute__((flatten))
|
||||
# else
|
||||
# define __flatten
|
||||
|
Loading…
x
Reference in New Issue
Block a user