mdbx: add admonition of insecure for RISC-V (backport).

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2022-11-09 12:39:06 +03:00
parent af1d01ffb3
commit d7e4cb2e22
1 changed files with 8 additions and 0 deletions

8
mdbx.h
View File

@ -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; \