From 1659c12fa2e82374b1974da6ce9afb8f8bf497de Mon Sep 17 00:00:00 2001 From: riastradh Date: Thu, 20 Aug 2020 21:36:21 +0000 Subject: [PATCH] Mark KASSERT-only variable as __diagused. --- sys/net/if_wg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c index 15e2a5fa75a2..99a2e6ea8f2e 100644 --- a/sys/net/if_wg.c +++ b/sys/net/if_wg.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wg.c,v 1.18 2020/08/20 21:35:44 riastradh Exp $ */ +/* $NetBSD: if_wg.c,v 1.19 2020/08/20 21:36:21 riastradh Exp $ */ /* * Copyright (C) Ryota Ozaki @@ -43,7 +43,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.18 2020/08/20 21:35:44 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wg.c,v 1.19 2020/08/20 21:36:21 riastradh Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -907,7 +907,7 @@ wg_algo_dh(uint8_t out[WG_DH_OUTPUT_LEN], CTASSERT(WG_STATIC_KEY_LEN == crypto_scalarmult_curve25519_BYTES); - int ret = crypto_scalarmult(out, privkey, pubkey); + int ret __diagused = crypto_scalarmult(out, privkey, pubkey); KASSERT(ret == 0); }