diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 01:00:52 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-02-05 01:00:52 +0100 |
commit | 8ba549859092de652ebfa67cdc6bcfce5a2d1f0c (patch) | |
tree | a5ba189ed4f792bb6c89a6141744fde87f00fd34 /src/encoding.c | |
parent | noise: store clamped key instead of raw key (diff) | |
download | wireguard-tools-8ba549859092de652ebfa67cdc6bcfce5a2d1f0c.tar.xz wireguard-tools-8ba549859092de652ebfa67cdc6bcfce5a2d1f0c.zip |
wg: fight compiler slightly harder
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | src/encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding.c b/src/encoding.c index efe004f..bf5fd54 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -119,7 +119,7 @@ bool key_is_zero(const uint8_t key[static WG_KEY_LEN]) for (unsigned int i = 0; i < WG_KEY_LEN; ++i) { acc |= key[i]; - asm("" : "=r" (acc) : "0" (acc)); + asm volatile("" : "=r"(acc) : "0"(acc)); } return 1 & ((acc - 1) >> 8); } |