]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
Makefile: clang now builds the kernel, so use scan-build
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 5 Oct 2017 18:52:19 +0000 (20:52 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 5 Oct 2017 20:21:53 +0000 (22:21 +0200)
Also add little stub for coccinelle and clean up semicolon issue it
found.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/Makefile
src/config.c

index 1407de4b8f83b117e46337614333fcd3bd7b768a..01f873cada03f55915d49de1a286580b0069e9ff 100644 (file)
@@ -80,9 +80,6 @@ install: wg
        @[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_SYSTEMDUNITS)" = "yes" ] || exit 0; \
        install -v -d "$(DESTDIR)$(SYSTEMDUNITDIR)" && install -m 0644 -v wg-quick@.service "$(DESTDIR)$(SYSTEMDUNITDIR)/wg-quick@.service"
 
-check: clean
-       CFLAGS=-g scan-build --view --keep-going $(MAKE) wg
-
 help:
        @cat INSTALL
 
index 0d8daeb31d4c4d99ffc6b85e3d9aa823840689d8..9f3f990bb13002cf1c0f0b36efad33e0b6483b04 100644 (file)
@@ -223,7 +223,7 @@ static inline bool parse_allowedips(struct wgpeer *peer, struct wgallowedip **la
        if (!mutable) {
                perror("strdup");
                return false;
-       };
+       }
        peer->flags |= WGPEER_REPLACE_ALLOWEDIPS;
        if (!strlen(value)) {
                free(mutable);