mdbx: conform to and use -Wpedantic.

Change-Id: I3056af7ae53c5a7c3ecbfe828ab1d5ee94c2bc26
This commit is contained in:
Leonid Yuriev
2019-10-26 00:02:28 +03:00
parent c694325ab7
commit 84bff89eb1
9 changed files with 136 additions and 140 deletions

View File

@@ -21,7 +21,7 @@ suffix ?=
CC ?= gcc
LD ?= ld
MDBX_OPTIONS ?= -DNDEBUG=1
CFLAGS ?= -Os -g3 -Wall -Werror -Wextra -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-tautological-compare
CFLAGS ?= -Os -g3 -Wall -Werror -Wextra -Wpedantic -ffunction-sections -fPIC -fvisibility=hidden -std=gnu11 -pthread -Wno-tautological-compare
# LY: '--no-as-needed,-lrt' for ability to built with modern glibc, but then run with the old
LDFLAGS ?= $(shell $(LD) --help 2>/dev/null | grep -q -- --gc-sections && echo '-Wl,--gc-sections,-z,relro,-O1')$(shell $(LD) --help 2>/dev/null | grep -q -- -dead_strip && echo '-Wl,-dead_strip')