*(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount;
error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] .... cc1: some warnings being treated as errors
弱弱问一句,怎么能把代码复制成这样。。。
编译工程时,在下面这句报错 *(sha2_word64*)&context->buffer[SHA256_SHORT_BLOCK_LENGTH] = context->bitcount; 错误信息: error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] .... cc1: some warnings being treated as errors
70,023
社区成员
243,263
社区内容
加载中
试试用AI创作助手写篇文章吧