This repository was archived by the owner on Sep 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
erofs-utils: fix compilation error due to const static init
gcc-7 and earlier versions fail to infer the initial value of a const global variable from another const global variable. Therefore, compiling with gcc-7 and below will result in failure. In fact, for global const variables, using macros is a better choice. Signed-off-by: Li Yiyan <lyy0627@sjtu.edu.cn> Link: https://lore.kernel.org/r/20230725085020.904884-1-lyy0627@sjtu.edu.cn Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
- Loading branch information