diff --git a/mdbx.h b/mdbx.h index c30c4897..2a7ae872 100644 --- a/mdbx.h +++ b/mdbx.h @@ -75,6 +75,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #ifndef LIBMDBX_H #define LIBMDBX_H +#if defined(__riscv) || defined(__riscv__) || defined(__RISCV) || \ + defined(__RISCV__) +#warning The RISC-V architecture is intentionally insecure by design. \ + Please delete this admonition at your own risk, \ + if you make such decision informed and consciously. \ + Refer to https://clck.ru/32d9xH for more information. +#endif /* RISC-V */ + #ifdef _MSC_VER #pragma warning(push, 1) #pragma warning(disable : 4548) /* expression before comma has no effect; \