summaryrefslogtreecommitdiff
path: root/src/ext
diff options
context:
space:
mode:
authorHans-Christoph Steiner <hans@eds.org>2019-12-10 22:44:43 +0100
committerHans-Christoph Steiner <hans@eds.org>2021-12-16 10:21:18 +0100
commita86918d524806d34cbcac9c42fc7616ddc4a5fd1 (patch)
tree2f5ef365d15296c21644431d84e04391d345e7e8 /src/ext
parent48e993be9585c9fa51c3d6b80d11d7a770cfd366 (diff)
downloadtor-a86918d524806d34cbcac9c42fc7616ddc4a5fd1.tar.gz
tor-a86918d524806d34cbcac9c42fc7616ddc4a5fd1.zip
fix syntax errors listed by cppcheck
Diffstat (limited to 'src/ext')
-rw-r--r--src/ext/ed25519/donna/test-ticks.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ext/ed25519/donna/test-ticks.h b/src/ext/ed25519/donna/test-ticks.h
index 0103e03dde..16cec9ba92 100644
--- a/src/ext/ed25519/donna/test-ticks.h
+++ b/src/ext/ed25519/donna/test-ticks.h
@@ -13,7 +13,7 @@ get_ticks(void) {
__asm__ __volatile__("rdtsc" : "=a" (lo), "=d" (hi));
return ((uint64_t)lo | ((uint64_t)hi << 32));
#else
- need rdtsc for this compiler
+ #error need rdtsc for this compiler
#endif
#elif defined(OS_SOLARIS)
return (uint64_t)gethrtime();
@@ -35,7 +35,7 @@ get_ticks(void) {
t = ((uint64_t)t2.tv_usec << 32) | (uint64_t)t2.tv_sec;
return t;
#else
- need ticks for this platform
+ #error need ticks for this platform
#endif
}