This is an automated email from the ASF dual-hosted git repository. ronny pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb-fast-pbkdf2.git
commit f389ab8b26d72616f43ca1cd6f9bd993957d05f0 Author: Ronny Berndt <[email protected]> AuthorDate: Fri Jan 19 18:15:00 2024 +0100 Add `-Wundef` to compile options Give a warning for undefined macros to prevent errors like #11. --- rebar.config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index 391bcba..a90a869 100644 --- a/rebar.config +++ b/rebar.config @@ -16,7 +16,7 @@ {port_env, [ {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", - "CFLAGS", "$CFLAGS -std=c99 -O0 -g -Wall -Wextra -fPIC -I/opt/homebrew/include -I/usr/local/include --coverage"}, + "CFLAGS", "$CFLAGS -std=c99 -O0 -g -Wall -Wextra -Wundef -fPIC -I/opt/homebrew/include -I/usr/local/include --coverage"}, {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", "LDLIBS", "$LDLIBS -lcrypto -L/opt/homebrew/lib/ -L/usr/local/lib --coverage"} ] @@ -30,7 +30,7 @@ {port_env, [ {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", - "CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -fPIC -I/opt/homebrew/include -I/usr/local/include"}, + "CFLAGS", "$CFLAGS -std=c99 -O3 -g -Wall -Wextra -Wundef -fPIC -I/opt/homebrew/include -I/usr/local/include"}, {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin|gnu)", "LDLIBS", "$LDLIBS -lcrypto -L/opt/homebrew/lib/ -L/usr/local/lib"}, {"win32", "CFLAGS", "$CFLAGS /I${OPENSSL_INSTALL_DIR}/include /O2 /DNDEBUG /Wall"},
