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:
parent
e95fcccb4d
commit
38ac0ff08e
|
@ -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
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue