10 Star 0 Fork 22

src-openEuler/libgcrypt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Use-the-compiler-switch-O0-for-compiling-jitterentro.patch 860 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhengxiaoxiao 提交于 2023-07-24 16:21 +08:00 . update to 1.10.2
From 642d43d4545b48322dc10a5b9f08bc5d09a8591f Mon Sep 17 00:00:00 2001
From: zhengxiaoxiao <zhengxiaoxiao2@huawei.com>
Date: Tue, 1 Aug 2023 12:05:44 +0800
Subject: [PATCH] Use the compiler switch -O0 for compiling jitterentropy.c.
---
random/jitterentropy-base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/random/jitterentropy-base.c b/random/jitterentropy-base.c
index cf7630d..08a2cd3 100644
--- a/random/jitterentropy-base.c
+++ b/random/jitterentropy-base.c
@@ -55,7 +55,7 @@
***************************************************************************/
#ifdef __OPTIMIZE__
- #error "The CPU Jitter random number generator must not be compiled with optimizations. See documentation. Use the compiler switch -O0 for compiling jitterentropy.c."
+ #pragma GCC optimize ("O0")
#endif
/*
--
2.33.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/libgcrypt.git
git@gitee.com:src-openeuler/libgcrypt.git
src-openeuler
libgcrypt
libgcrypt
master

搜索帮助