From 1aed5feda9ea78e99e151f3e76c044fe209fb76b Mon Sep 17 00:00:00 2001 From: "Frank J. T. Wojcik" Date: Tue, 28 Nov 2023 16:10:02 -0800 Subject: [PATCH] Remove some redundant semicolons (NFC) --- include/hashlib/Hashlib.h | 2 +- util/Instantiate.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/hashlib/Hashlib.h b/include/hashlib/Hashlib.h index 339e1a2f..aa507bbe 100644 --- a/include/hashlib/Hashlib.h +++ b/include/hashlib/Hashlib.h @@ -55,7 +55,7 @@ bool verifyHash( const HashInfo * hinfo, enum HashInfo::endianness endian, bool __VA_ARGS__; \ register_hash(&$); \ return $; \ - }(); + }() #define USE_FAMILY(N) \ extern unsigned CONCAT(N,_ref); \ diff --git a/util/Instantiate.h b/util/Instantiate.h index 54a24eea..eff78db2 100644 --- a/util/Instantiate.h +++ b/util/Instantiate.h @@ -29,7 +29,7 @@ std::tuple_cat(std::make_tuple(FN)...); \ return &instances; \ } \ - template auto FN ## _instantiator(); + template auto FN ## _instantiator() #else // C++11 doesn't, so YOU get a void*, and YOU get a void*,.... #define INSTANTIATE(FN, TYPELIST) \ @@ -39,7 +39,7 @@ std::make_tuple(((void *)(FN))...); \ return (void *)(&instances); \ } \ - template void * FN ## _instantiator(); + template void * FN ## _instantiator() #endif // If you get a compiler error from this macro that looks like: