Module Name:    src
Committed By:   riastradh
Date:           Thu Aug 20 21:36:21 UTC 2020

Modified Files:
        src/sys/net: if_wg.c

Log Message:
Mark KASSERT-only variable as __diagused.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/net/if_wg.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/if_wg.c
diff -u src/sys/net/if_wg.c:1.18 src/sys/net/if_wg.c:1.19
--- src/sys/net/if_wg.c:1.18	Thu Aug 20 21:35:44 2020
+++ src/sys/net/if_wg.c	Thu Aug 20 21:36:21 2020
@@ -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 <ozaki.ry...@gmail.com>
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__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);
 }
 

Reply via email to