[PATCH] erofs-utils: fix compilation error due to const static init

Gao Xiang hsiangkao at linux.alibaba.com
Tue Jul 25 18:57:19 AEST 2023



On 2023/7/25 16:50, Li Yiyan wrote:
> 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 at sjtu.edu.cn>

Thanks, applied.

Thanks,
Gao Xiang


More information about the Linux-erofs mailing list