aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/encoding.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/encoding.c')
-rw-r--r--src/tools/encoding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/encoding.c b/src/tools/encoding.c
index efe004f..bf5fd54 100644
--- a/src/tools/encoding.c
+++ b/src/tools/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);
}