fileio: use the prefixed lz4frame type LZ4F_contentChecksum_t
还没有人认领这个 Issue。
评估
调研方向
从programs/fileio.c开始,检查兼容性代码块LZ4_VERSION_NUMBER <= 10600以及 issue 中描述的校验和强制类型转换。按照建议更新过时的 enum 用法和兼容性定义,然后构建启用了 lz4 支持的 zstd,包括使用-Werror的构建。支持的 lz4 版本编译时不再出现过时 enum 警告,即为完成。
由索引模型根据 Issue 内容生成。
描述
programs/fileio.c defines LZ4F_ENABLE_OBSOLETE_ENUMS and employs contentChecksum_t, an unprefixed name obsolete since lz4 v1.7.0.
- lz4 v1.11.0 removed these names : zstd no longer builds with lz4 support (lz4/lz4#2046).
- lz4 v1.11.1 restores them (lz4/lz4#2053), but deprecated : a compilation warning, an error with
-Werror.
Suggested fix :
(LZ4F_contentChecksum_t)checksumFlag- drop
#define LZ4F_ENABLE_OBSOLETE_ENUMS - in the
LZ4_VERSION_NUMBER <= 10600block, add#define LZ4F_contentChecksum_t contentChecksum_t
- 主要语言
- C
- 星标
- 28.1k
- 派生
- 2.7k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
facebook/zstd 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
-
ZSTD_decompressStream accepts a Compressed_Block with Block_Size 0 that ZSTD_decompress rejects可能已有人在做 @Artyx71 于 7 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
-
One-shot decoding refuses some skippable frames可能已有人在做 @ceedot-rock 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
`ZSTD_getDictID_fromFrame` returns a skippable frame's magic variant as its dictionary ID可能已有人在做 @b84330808 于 13 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
-
cover.c does not build on OpenHarmony: qsort_r is exported but not declared (musl)可能已有人在做 @bfs2021 于 14 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 66/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 80/100
openziti/ziti-sdk-c#1254 ·
维护者通常 1 天内回复
-
http_fetch tests: the two no-child rows fail, not skip, where a task's children file does not exist可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭area:http kind:gate-defect
难度 2/5 1-3 小时 新手友好度 82/100
InauguralSystems/EigenScript#2397 ·
维护者通常 1 天内回复
-
Add SECURITY.md未关闭enhancement
难度 1/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
modem: ppp: CMUX DLCI receive buffer overruns on large downlink packets可能已有人在做 @pedrohqr 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
zephyrproject-rtos/zephyr#126195 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 72/100
ly05010419/MacNativeGames#2271 ·
维护者通常 1 天内回复