Makefile: clang now builds the kernel, so use scan-build

Also add little stub for coccinelle and clean up semicolon issue it
found.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-10-05 20:52:19 +02:00
parent e95fcccb4d
commit 38ac0ff08e
2 changed files with 1 additions and 4 deletions

View file

@ -80,9 +80,6 @@ install: wg
@[ "$(WITH_WGQUICK)" = "yes" -a "$(WITH_SYSTEMDUNITS)" = "yes" ] || exit 0; \ @[ "$(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" 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: help:
@cat INSTALL @cat INSTALL

View file

@ -223,7 +223,7 @@ static inline bool parse_allowedips(struct wgpeer *peer, struct wgallowedip **la
if (!mutable) { if (!mutable) {
perror("strdup"); perror("strdup");
return false; return false;
}; }
peer->flags |= WGPEER_REPLACE_ALLOWEDIPS; peer->flags |= WGPEER_REPLACE_ALLOWEDIPS;
if (!strlen(value)) { if (!strlen(value)) {
free(mutable); free(mutable);