From: Matt Corallo Date: Fri, 23 Oct 2020 20:28:47 +0000 (-0400) Subject: Enable more C build-time warnings X-Git-Tag: v0.0.1~90 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e8afbfccdeee4a48279e76975ada6056ef93064e;p=ldk-java Enable more C build-time warnings --- diff --git a/genbindings.sh b/genbindings.sh index 00999383..ae763024 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -15,7 +15,7 @@ rm -f src/main/jni/*.h ./genbindings.py "$1/lightning-c-bindings/include/lightning.h" src/main/java/org/ldk/impl/bindings.java src/main/java/org/ldk src/main/jni/bindings.c $3 javac -h src/main/jni src/main/java/org/ldk/enums/*.java src/main/java/org/ldk/impl/bindings.java rm src/main/java/org/ldk/enums/*.class src/main/java/org/ldk/impl/bindings*.class -COMPILE="clang -std=c11 -Wall -Wno-unused-function -Wl,--no-undefined -pthread -ldl -o liblightningjni.so -shared -fPIC -Wno-pointer-sign -Isrc/main/jni" +COMPILE="clang -std=c11 -Wall -Wextra -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-unused-function -Wl,--no-undefined -pthread -ldl -o liblightningjni.so -shared -fPIC -Wno-pointer-sign -Isrc/main/jni" if [ "$3" = "true" ]; then $COMPILE -g -fsanitize=address -shared-libasan -Wl,-wrap,calloc -Wl,-wrap,realloc -Wl,-wrap,reallocarray -Wl,-wrap,malloc -Wl,-wrap,free -rdynamic -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c "$1"/lightning-c-bindings/target/debug/libldk.a else