mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 19:44:13 +08:00
mdbx: add admonition of insecure for RISC-V (backport).
This commit is contained in:
parent
af1d01ffb3
commit
d7e4cb2e22
8
mdbx.h
8
mdbx.h
@ -75,6 +75,14 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|||||||
#ifndef LIBMDBX_H
|
#ifndef LIBMDBX_H
|
||||||
#define 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
|
#ifdef _MSC_VER
|
||||||
#pragma warning(push, 1)
|
#pragma warning(push, 1)
|
||||||
#pragma warning(disable : 4548) /* expression before comma has no effect; \
|
#pragma warning(disable : 4548) /* expression before comma has no effect; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user