]> git.bitcoin.ninja Git - ldk-java/commitdiff
Enable more C build-time warnings
authorMatt Corallo <git@bluematt.me>
Fri, 23 Oct 2020 20:28:47 +0000 (16:28 -0400)
committerMatt Corallo <git@bluematt.me>
Fri, 23 Oct 2020 20:32:57 +0000 (16:32 -0400)
genbindings.sh

index 009993832fe89f0e60aec29de45b3341d59d5446..ae763024bbdfbb57797d7b6f35eed660943870af 100755 (executable)
@@ -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